Files
twx-linux/drivers/scsi
Anton Vasilyev 5563a93285 scsi: 3ware: fix return 0 on the error path of probe
[ Upstream commit 4dc98c1995 ]

tw_probe() returns 0 in case of fail of tw_initialize_device_extension(),
pci_resource_start() or tw_reset_sequence() and releases resources.
twl_probe() returns 0 in case of fail of twl_initialize_device_extension(),
pci_iomap() and twl_reset_sequence().  twa_probe() returns 0 in case of
fail of tw_initialize_device_extension(), ioremap() and
twa_reset_sequence().

The patch adds retval initialization for these cases.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Acked-by: Adam Radford <aradford@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-19 22:47:14 +02:00
..
2017-12-25 14:23:44 +01:00
2016-07-20 17:38:35 -06:00
2016-05-10 22:01:07 -04:00
2018-01-23 19:57:05 +01:00
2017-12-20 10:07:22 +01:00
2018-03-22 09:17:42 +01:00
2016-09-26 20:49:25 -04:00
2016-11-28 15:51:31 -05:00