Anton Vasilyev 383195f9fe scsi: 3ware: fix return 0 on the error path of probe
[ Upstream commit 4dc98c1995482262e70e83ef029135247fafe0f2 ]

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:43:42 +02:00
..
2017-12-25 14:26:25 +01:00
2018-01-02 20:31:05 +01:00
2018-08-24 13:09:15 +02:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2018-08-15 18:12:47 +02:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2017-09-13 10:47:14 -07:00
2017-08-25 17:21:11 -04:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00