Commit ff0486fb authored by Quinn Tran's avatar Quinn Tran Committed by Tim Gardner

UBUNTU: SAUCE: (noup) qla2xxx: Add irq affinity notification V2

BugLink: http://bugs.launchpad.net/bugs/1554003

Commit cdb898c5 introduced a regression by accessing a Null pointer.  This occured
 when checking older 4G adapters, that do not have MSIX support.  Add a check for rsp->msix.

Fixes: commit cdb898c5: ("qla2xxx: Add irq affinity notification")
Signed-off-by: default avatarJoseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 249f484d
......@@ -2552,7 +2552,7 @@ void qla24xx_process_response_queue(struct scsi_qla_host *vha,
if (!vha->flags.online)
return;
if (rsp->msix->cpuid != smp_processor_id()) {
if (rsp->msix && (rsp->msix->cpuid != smp_processor_id())) {
/* if kernel does not notify qla of IRQ's CPU change,
* then set it here.
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment