Alexey Khoroshilov 6960af6dce 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>
2013-01-07 15:16:59 -05:00
..
2012-08-10 15:17:14 -04:00
2012-06-06 09:31:33 -07:00
2011-03-07 13:51:04 -05:00
2012-09-24 15:02:08 -04:00
2010-06-03 03:18:23 -07:00
2011-02-14 15:52:10 -05:00
2012-12-06 15:04:58 -05:00
2010-06-03 03:18:23 -07:00
2012-12-06 15:04:58 -05:00
2012-04-09 16:07:35 -04:00
2012-11-26 14:54:21 -05:00