summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2023-04-08 22:43:21 +0300
committerDavid S. Miller <davem@davemloft.net>2023-04-12 12:45:32 +0300
commita56ef25619e079bd7d744636cf18d054d1e91982 (patch)
tree3d2a7f9a47bbe246c0d2452d520891c9d68eb844 /drivers/net/ethernet/ti
parent9744d2bf19762703704ecba885b7ac282c02eacf (diff)
downloadlinux-a56ef25619e079bd7d744636cf18d054d1e91982.tar.xz
net: wwan: iosm: Fix error handling path in ipc_pcie_probe()
Smatch reports: drivers/net/wwan/iosm/iosm_ipc_pcie.c:298 ipc_pcie_probe() warn: missing unwind goto? When dma_set_mask fails it directly returns without disabling pci device and freeing ipc_pcie. Fix this my calling a correct goto label As dma_set_mask returns either 0 or -EIO, we can use a goto label, as it finally returns -EIO. Add a set_mask_fail goto label which stands consistent with other goto labels in this function.. Fixes: 035e3befc191 ("net: wwan: iosm: fix driver not working with INTEL_IOMMU disabled") Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
0 files changed, 0 insertions, 0 deletions