diff options
author | Anton Vasilyev <vasilyev@ispras.ru> | 2018-07-27 15:51:57 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-31 05:17:53 +0200 |
commit | 4dc98c1995482262e70e83ef029135247fafe0f2 (patch) | |
tree | 8d71d32c2cf48ad64eefd80085dda9e667baad07 /drivers/scsi/scsi_debug.c | |
parent | scsi: atp870u: Replace mdelay() with msleep() (diff) | |
download | linux-4dc98c1995482262e70e83ef029135247fafe0f2.tar.xz linux-4dc98c1995482262e70e83ef029135247fafe0f2.zip |
scsi: 3ware: fix return 0 on the error path of probe
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions