]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[SCSI] mpt2sas: _scsih_smart_predicted_fault uses GFP_KERNEL in interrupt context
authorAnton Blanchard <anton@samba.org>
Mon, 7 Nov 2011 11:05:21 +0000 (22:05 +1100)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 12 Dec 2011 08:20:49 +0000 (12:20 +0400)
_scsih_smart_predicted_fault is called in an interrupt and therefore
must allocate memory using GFP_ATOMIC.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: <stable@kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c

index 4e041f6d808cd6e49666b35c8d8aec0f1b0a76c5..d570573b7963ec47179d15ec7ac613221f0ce4bc 100644 (file)
@@ -4335,7 +4335,7 @@ _scsih_smart_predicted_fault(struct MPT2SAS_ADAPTER *ioc, u16 handle)
        /* insert into event log */
        sz = offsetof(Mpi2EventNotificationReply_t, EventData) +
             sizeof(Mpi2EventDataSasDeviceStatusChange_t);
-       event_reply = kzalloc(sz, GFP_KERNEL);
+       event_reply = kzalloc(sz, GFP_ATOMIC);
        if (!event_reply) {
                printk(MPT2SAS_ERR_FMT "failure at %s:%d/%s()!\n",
                    ioc->name, __FILE__, __LINE__, __func__);