Gleb Chesnokov
d54820b22e
scsi: qla2xxx: Fix NULL pointer dereference in target mode
...
When target mode is enabled, the pci_irq_get_affinity() function may return
a NULL value in qla_mapq_init_qp_cpu_map() due to the qla24xx_enable_msix()
code that handles IRQ settings for target mode. This leads to a crash due
to a NULL pointer dereference.
This patch fixes the issue by adding a check for the NULL value returned by
pci_irq_get_affinity() and introducing a 'cpu_mapped' boolean flag to the
qla_qpair structure, ensuring that the qpair's CPU affinity is updated when
it has not been mapped to a CPU.
Fixes: 1d201c81d4cc ("scsi: qla2xxx: Select qpair depending on which CPU post_cmd() gets called")
Signed-off-by: Gleb Chesnokov <gleb.chesnokov@scst.dev>
Link: https://lore.kernel.org/r/56b416f2-4e0f-b6cf-d6d5-b7c372e3c6a2@scst.dev
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-05-22 18:00:16 -04:00
..
2023-03-24 20:13:03 -04:00
2022-09-15 22:01:24 -04:00
2023-03-24 19:19:21 -04:00
2023-03-24 20:13:03 -04:00
2023-03-24 19:19:21 -04:00
2023-03-24 20:13:03 -04:00
2023-03-09 22:00:38 -05:00
2022-05-16 21:26:50 -04:00
2023-03-24 19:19:57 -04:00
2023-03-09 22:00:38 -05:00
2023-04-26 16:07:23 -07:00
2023-04-27 11:53:57 -07:00
2023-03-16 23:02:23 -04:00
2023-03-24 20:13:03 -04:00
2023-04-27 16:36:55 -07:00
2023-04-27 11:53:57 -07:00
2023-03-24 20:13:03 -04:00
2023-04-11 21:13:22 -04:00
2023-03-24 19:19:56 -04:00
2023-03-16 23:36:36 -04:00
2023-03-24 19:19:57 -04:00
2022-12-01 03:03:36 +00:00
2023-04-02 21:19:12 -04:00
2023-04-26 15:39:25 -07:00
2023-03-31 21:45:14 -04:00
2023-04-26 15:39:25 -07:00
2023-04-11 21:00:37 -04:00
2023-03-24 19:19:57 -04:00
2023-03-24 19:19:58 -04:00
2023-04-24 23:10:51 -04:00
2023-04-02 21:45:46 -04:00
2023-04-24 23:32:13 -04:00
2023-05-22 18:00:16 -04:00
2023-04-02 21:48:46 -04:00
2023-03-24 19:19:59 -04:00
2023-04-02 21:47:36 -04:00
2023-03-24 19:19:59 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-01-12 00:09:52 -05:00
2023-03-24 19:19:20 -04:00
2022-09-25 13:06:00 -04:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:20 -04:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:22 -04:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:20 -04:00
2023-03-17 15:16:33 +01:00
2023-03-24 19:19:21 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2022-08-01 19:52:03 -04:00
2023-03-24 19:19:22 -04:00
2023-03-24 19:19:22 -04:00
2023-03-31 21:45:14 -04:00
2023-03-24 20:13:03 -04:00
2023-03-24 19:19:56 -04:00
2022-09-25 13:04:17 -04:00
2023-03-24 19:19:56 -04:00
2022-02-22 21:11:04 -05:00
2023-03-24 19:19:56 -04:00
2022-02-22 21:11:05 -05:00
2023-04-24 23:11:47 -04:00
2023-04-18 23:01:23 -04:00
2023-01-18 18:41:12 -05:00
2023-04-26 15:39:25 -07:00
2022-09-25 14:27:47 -04:00
2023-03-24 19:19:22 -04:00
2023-04-18 23:01:23 -04:00
2021-08-30 10:18:25 +02:00
2022-06-21 21:19:23 -04:00
2023-03-24 19:19:57 -04:00
2023-03-24 19:19:57 -04:00
2022-02-27 21:35:30 -05:00
2023-03-24 19:19:22 -04:00
2022-02-22 21:11:03 -05:00
2022-06-27 22:56:21 -04:00
2023-03-24 20:27:17 -04:00
2022-02-22 21:11:05 -05:00
2023-03-24 19:19:57 -04:00
2022-02-27 21:34:02 -05:00
2023-03-24 19:19:57 -04:00
2023-03-24 19:19:58 -04:00
2023-01-12 00:11:11 -05:00
2023-03-24 19:19:58 -04:00
2023-03-24 19:19:58 -04:00
2022-02-22 21:11:07 -05:00
2022-02-22 21:11:07 -05:00
2022-11-08 02:57:01 +00:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:58 -04:00
2022-02-22 21:11:06 -05:00
2023-04-27 11:53:57 -07:00
2022-03-29 23:32:26 -04:00
2023-03-24 19:19:58 -04:00
2023-03-24 19:19:58 -04:00
2023-03-24 19:19:59 -04:00
2022-02-22 21:11:06 -05:00
2022-02-22 21:11:02 -05:00
2022-02-22 21:11:02 -05:00
2023-03-24 20:13:03 -04:00
2022-03-15 14:05:02 -04:00
2023-04-18 22:58:50 -04:00
2022-03-01 22:21:50 -05:00
2023-03-16 22:54:43 -04:00
2023-03-24 19:19:19 -04:00
2023-01-13 21:34:09 -05:00
2023-05-16 21:56:35 -04:00
2022-03-29 23:29:19 -04:00
2021-12-22 23:38:29 -05:00
2022-10-18 03:17:09 +00:00
2022-10-18 03:17:09 +00:00
2023-03-09 20:57:58 -05:00
2023-04-13 11:49:20 -07:00
2023-03-24 19:19:19 -04:00
2023-04-02 21:37:57 -04:00
2022-12-30 16:29:34 +00:00
2022-11-08 01:52:52 +00:00
2023-01-13 21:34:09 -05:00
2022-10-22 03:25:59 +00:00
2023-03-24 21:01:32 -04:00
2022-05-08 14:28:18 -04:00
2023-02-21 22:00:32 -05:00
2022-12-01 03:13:55 +00:00
2023-03-06 18:33:13 -05:00
2023-04-03 09:33:30 +02:00
2022-08-22 22:45:25 -04:00
2023-04-27 11:53:57 -07:00
2023-04-03 21:42:52 +02:00
2023-03-24 19:19:59 -04:00
2023-01-13 21:34:09 -05:00
2021-12-22 23:41:13 -05:00
2023-04-02 21:36:47 -04:00
2022-03-08 19:40:01 -07:00
2022-10-07 12:33:18 -07:00
2022-03-08 19:40:00 -07:00
2023-03-24 19:19:59 -04:00
2023-05-16 21:50:53 -04:00
2022-02-22 21:11:03 -05:00
2023-03-24 19:19:22 -04:00
2023-03-24 20:13:03 -04:00
2023-03-24 19:19:59 -04:00
2022-04-06 23:01:54 -04:00
2022-06-07 21:30:56 -04:00
2022-09-25 13:29:53 -04:00
2022-09-25 13:29:53 -04:00
2023-03-24 19:19:59 -04:00
2022-02-22 21:11:07 -05:00
2023-03-24 19:20:00 -04:00
2022-02-22 21:11:07 -05:00
2022-03-30 00:05:42 -04:00
2023-03-24 19:19:22 -04:00