Files
twx-linux/drivers/scsi
Anton Vasilyev 3f5885f4ce 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:48:58 +02:00
..
2016-04-12 09:08:39 -07:00
2017-12-25 14:22:14 +01:00
…
2017-03-18 19:09:58 +08:00
…
…
…
…
2016-07-27 09:47:39 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-25 11:03:44 +01:00
…
…
…
…
…
…
…
…
…
…
2018-01-23 19:50:15 +01:00
2017-12-20 10:04:55 +01:00
…
…
…
…
…
…
…
2018-03-22 09:23:21 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-10-28 03:01:31 -04:00
…
…
…
…
…
2018-02-25 11:03:44 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…