]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] ibmvfc: Fix oops in interrupt handler
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 14 Nov 2008 19:33:50 +0000 (13:33 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:17 +0000 (11:24 -0600)
Fixes an oops that can occur in the interrupt handler
if we get a lot of async events.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ibmvscsi/ibmvfc.c

index 9fead7f19e2256af1ba86c04db09d198076c5061..eb79f755dad0939caa5e45b0fcf1828b8768b594 100644 (file)
@@ -2721,7 +2721,7 @@ static irqreturn_t ibmvfc_interrupt(int irq, void *dev_instance)
                } else if ((async = ibmvfc_next_async_crq(vhost)) != NULL) {
                        vio_disable_interrupts(vdev);
                        ibmvfc_handle_async(async, vhost);
-                       crq->valid = 0;
+                       async->valid = 0;
                } else
                        done = 1;
        }