mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
net: wwan: qcom_bam_dmux: fix wrong pointer passed to IS_ERR()
[ Upstream commit6b3c745502
] It should check dmux->tx after calling dma_request_chan(). Fixes:21a0ffd9b3
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b864d5350c
commit
06db021cb7
1 changed files with 1 additions and 1 deletions
|
@ -755,7 +755,7 @@ static int __maybe_unused bam_dmux_runtime_resume(struct device *dev)
|
|||
return 0;
|
||||
|
||||
dmux->tx = dma_request_chan(dev, "tx");
|
||||
if (IS_ERR(dmux->rx)) {
|
||||
if (IS_ERR(dmux->tx)) {
|
||||
dev_err(dev, "Failed to request TX DMA channel: %pe\n", dmux->tx);
|
||||
dmux->tx = NULL;
|
||||
bam_dmux_runtime_suspend(dev);
|
||||
|
|
Loading…
Reference in a new issue