Skip to content

Commit 6b3c745

Browse files
Yang YingliangPaolo Abeni
authored andcommitted
net: wwan: qcom_bam_dmux: fix wrong pointer passed to IS_ERR()
It should check dmux->tx after calling dma_request_chan(). Fixes: 21a0ffd ("net: wwan: Add Qualcomm BAM-DMUX WWAN network driver") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20220319032450.3288224-1-yangyingliang@huawei.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 8fd3635 commit 6b3c745

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/wwan/qcom_bam_dmux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ static int __maybe_unused bam_dmux_runtime_resume(struct device *dev)
755755
return 0;
756756

757757
dmux->tx = dma_request_chan(dev, "tx");
758-
if (IS_ERR(dmux->rx)) {
758+
if (IS_ERR(dmux->tx)) {
759759
dev_err(dev, "Failed to request TX DMA channel: %pe\n", dmux->tx);
760760
dmux->tx = NULL;
761761
bam_dmux_runtime_suspend(dev);

0 commit comments

Comments
 (0)