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
..
2018-05-25 16:17:50 +02:00
2017-11-02 11:10:55 +01:00
2018-09-15 09:45:30 +02:00
2017-08-10 19:40:50 -04:00
2018-04-26 11:02:10 +02:00
2017-08-07 14:04:01 -04:00
2018-02-25 11:08:01 +01:00
2018-05-25 16:17:46 +02:00
2017-07-26 21:51:25 -04:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:25 +01:00
2018-08-03 07:50:41 +02:00
2017-06-26 12:44:35 -04:00
2017-06-20 12:18:27 +02:00
2017-08-24 22:28:52 -04:00
2018-09-05 09:26:32 +02:00
2017-11-02 11:10:55 +01:00
2018-08-03 07:50:36 +02:00
2018-02-28 10:19:38 +01:00
2017-11-02 11:10:55 +01:00
2018-06-21 04:02:46 +09:00
2018-09-05 09:26:32 +02:00
2018-05-25 16:17:34 +02:00
2018-09-19 22:43:35 +02:00
2018-08-03 07:50:41 +02:00
2018-09-05 09:26:41 +02:00
2018-05-25 16:17:50 +02:00
2018-01-02 20:31:05 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-24 13:09:15 +02:00
2018-08-24 13:09:15 +02:00
2018-08-15 18:12:47 +02:00
2018-05-25 16:17:48 +02:00
2018-02-22 15:42:14 +01:00
2017-11-02 11:10:55 +01:00
2018-05-25 16:17:47 +02:00
2018-08-03 07:50:32 +02:00
2018-09-19 22:43:42 +02:00
2018-09-19 22:43:42 +02:00
2018-09-19 22:43:42 +02:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-04-04 19:39:39 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:07 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-04-21 10:31:33 -04:00
2017-04-21 10:31:33 -04:00
2017-08-24 22:29:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-08-10 19:55:35 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:12 -04:00
2017-08-10 19:55:35 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-07 14:04:01 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-08-15 18:12:47 +02:00
2017-06-12 20:48:00 -04:00
2018-08-15 18:12:47 +02:00
2018-08-15 18:12:47 +02:00
2017-08-25 17:21:10 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-22 22:23:36 -04:00
2017-08-08 11:49:51 -04:00
2017-06-20 12:18:27 +02:00
2017-06-20 12:18:27 +02:00
2018-05-25 16:17:49 +02:00
2017-09-13 10:47:14 -07:00
2017-08-22 16:34:36 +02:00
2018-09-05 09:26:24 +02:00
2017-08-07 14:04:02 -04:00
2017-11-02 11:10:55 +01:00
2017-08-10 19:55:34 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2018-08-03 07:50:36 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-04-24 18:16:49 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-01 11:59:17 +02:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:01 -04:00
2017-11-02 11:10:55 +01:00
2017-08-24 22:29:05 -04:00
2017-08-07 14:04:01 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-05-16 08:44:21 -03:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-08-28 22:15:46 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:28 +01:00
2017-12-20 10:10:20 +01:00
2017-04-26 15:09:04 -06:00
2018-04-26 11:02:10 +02:00
2018-08-03 07:50:40 +02:00
2018-03-15 10:54:29 +01:00
2017-08-25 17:08:07 -04:00
2017-11-02 11:10:55 +01:00
2018-05-25 16:17:50 +02:00
2017-11-02 11:10:55 +01:00
2017-04-13 13:58:20 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 09:26:41 +02:00
2017-11-02 11:10:55 +01:00
2017-10-11 14:33:12 -04:00
2018-06-21 04:02:43 +09:00
2017-08-29 21:51:45 -04:00
2017-02-23 16:57:19 -05:00
2018-06-05 11:41:59 +02:00
2017-09-07 12:12:43 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-25 11:25:06 +02:00
2018-05-25 16:17:49 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-19 08:42:51 +01:00
2018-08-06 16:20:52 +02:00
2017-08-25 17:21:10 -04:00
2017-03-15 19:27:46 -04:00
2018-05-30 07:51:49 +02:00
2017-11-02 11:10:55 +01:00
2018-08-15 18:12:47 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-08 11:49:51 -04:00
2017-11-02 11:10:55 +01:00
2017-04-26 18:32:29 -04:00
2018-06-21 04:02:46 +09:00
2017-08-25 17:21:11 -04:00
2017-06-27 21:46:55 -04:00
2018-08-15 18:12:47 +02:00
2018-09-05 09:26:32 +02:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-08-24 13:09:01 +02:00
2017-08-22 16:34:36 +02:00