Tong Zhang
4db09593af
scsi: myrs: Fix crash in error case
In myrs_detect(), cs->disable_intr is NULL when privdata->hw_init() fails
with non-zero. In this case, myrs_cleanup(cs) will call a NULL ptr and
crash the kernel.
[ 1.105606] myrs 0000:00:03.0: Unknown Initialization Error 5A
[ 1.105872] myrs 0000:00:03.0: Failed to initialize Controller
[ 1.106082] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 1.110774] Call Trace:
[ 1.110950] myrs_cleanup+0xe4/0x150 [myrs]
[ 1.111135] myrs_probe.cold+0x91/0x56a [myrs]
[ 1.111302] ? DAC960_GEM_intr_handler+0x1f0/0x1f0 [myrs]
[ 1.111500] local_pci_probe+0x48/0x90
Link: https://lore.kernel.org/r/20220123225717.1069538-1-ztong0001@gmail.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-01-25 00:09:41 -05:00
..
2022-01-05 00:23:47 -05:00
2022-01-05 00:55:38 -05:00
2021-10-18 12:28:53 -07:00
2021-10-16 21:45:54 -04:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:45:54 -04:00
2022-01-24 23:30:29 -05:00
2022-01-24 23:30:28 -05:00
2021-10-16 21:45:55 -04:00
2021-10-16 21:45:55 -04:00
2021-08-13 17:49:05 -07:00
2021-10-16 21:45:55 -04:00
2021-07-29 21:58:35 -04:00
2022-01-24 23:30:23 -05:00
2021-10-16 21:28:46 -04:00
2021-10-18 22:38:34 -04:00
2021-10-16 21:45:55 -04:00
2022-01-24 23:30:29 -05:00
2021-11-05 08:42:02 -07:00
2021-10-04 23:27:38 -04:00
2021-10-16 21:45:56 -04:00
2021-10-16 21:28:48 -04:00
2021-12-22 23:38:31 -05:00
2022-01-23 06:20:44 +02:00
2022-01-14 14:37:34 +01:00
2022-01-05 00:34:41 -05:00
2022-01-22 10:24:02 +02:00
2021-12-22 23:38:29 -05:00
2022-01-10 11:03:42 -05:00
2022-01-24 23:30:27 -05:00
2022-01-24 23:30:26 -05:00
2021-12-16 22:38:19 -05:00
2021-12-16 22:48:33 -05:00
2021-12-06 22:17:19 -05:00
2021-10-16 21:45:59 -04:00
2021-12-22 23:43:23 -05:00
2021-10-16 21:32:16 -04:00
2022-01-25 00:07:24 -05:00
2021-10-16 21:45:53 -04:00
2022-01-24 23:30:28 -05:00
2021-10-18 22:38:34 -04:00
2022-01-25 00:08:18 -05:00
2021-11-29 23:02:13 -05:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:32:16 -04:00
2021-10-19 14:07:19 -04:00
2021-10-16 21:32:16 -04:00
2021-11-29 23:02:13 -05:00
2021-10-16 21:32:16 -04:00
2022-01-14 14:37:34 +01:00
2021-11-29 23:02:14 -05:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:28:47 -04:00
2021-11-18 22:26:58 -05:00
2021-12-13 23:34:01 -05:00
2021-10-16 21:45:55 -04:00
2021-10-16 21:32:16 -04:00
2021-12-22 23:41:53 -05:00
2021-10-16 21:45:56 -04:00
2021-10-16 21:32:16 -04:00
2021-07-28 22:24:27 -04:00
2021-08-30 10:18:25 +02:00
2021-12-22 23:03:59 -05:00
2021-10-16 21:32:16 -04:00
2021-08-23 23:07:05 -04:00
2022-01-07 09:19:51 -05:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:29:15 -04:00
2021-12-22 23:42:23 -05:00
2022-01-25 00:09:41 -05:00
2021-10-16 21:45:57 -04:00
2021-10-16 21:28:44 -04:00
2021-10-16 21:32:16 -04:00
2021-12-22 23:44:12 -05:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:32:16 -04:00
2021-11-29 06:41:29 -07:00
2021-07-28 22:24:27 -04:00
2021-12-06 22:04:35 -05:00
2021-11-29 23:02:13 -05:00
2022-01-14 14:37:34 +01:00
2021-11-29 06:41:29 -07:00
2022-01-22 10:24:02 +02:00
2021-11-29 06:41:29 -07:00
2021-12-22 23:38:29 -05:00
2021-11-29 23:02:15 -05:00
2022-01-22 08:33:37 +02:00
2021-11-29 23:02:13 -05:00
2021-12-16 22:38:19 -05:00
2021-08-11 22:25:37 -04:00
2021-11-16 19:42:30 -05:00
2021-10-19 14:07:19 -04:00
2021-08-11 22:25:37 -04:00
2021-12-06 22:30:32 -05:00
2021-10-18 06:17:02 -06:00
2022-01-14 14:37:34 +01:00
2022-01-22 10:24:02 +02:00
2021-10-26 21:01:48 -06:00
2021-09-28 22:42:06 -04:00
2022-01-22 08:33:35 +02:00
2021-09-13 22:15:49 -04:00
2021-12-22 23:41:13 -05:00
2022-01-14 14:37:34 +01:00
2021-11-29 06:41:29 -07:00
2021-08-23 12:54:30 -06:00
2021-10-16 21:32:16 -04:00
2022-01-10 12:33:47 +00:00
2021-08-11 22:25:41 -04:00
2022-01-18 10:05:48 +02:00
2021-12-22 23:17:27 -05:00
2021-10-16 21:32:16 -04:00
2021-10-16 21:31:43 -04:00
2021-10-16 21:31:43 -04:00
2021-08-30 10:18:25 +02:00