diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-01-03 00:06:47 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-07 15:16:59 -0500 |
commit | 6960af6dce1f0b2d9d1b4ddf75952d54e633b923 (patch) | |
tree | 0ba3d4a06fdd882d1e327ad49c5e1860b601d6de /drivers/net/wireless/ti | |
parent | 40a23296854dded596fda33e0df4a7373229d75e (diff) |
p54pci: don't return zero on failure paths in p54p_probe()
If pci_set_dma_mask() or pci_set_consistent_dma_mask() fails in p54p_probe(),
it breaks off initialization, deallocates all resources, but returns zero.
Similar issue is if check for returned value of pci_resource_len() fails.
The patch implements proper error code propagation.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ti')
0 files changed, 0 insertions, 0 deletions