mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09:00
SCSI: mpt2sas: _scsih_smart_predicted_fault uses GFP_KERNEL in interrupt context
commit f6a290b419 upstream.
_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>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4e8a616fae
commit
4c9ddbf69e
@@ -4210,7 +4210,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__);
|
||||
|
||||
Reference in New Issue
Block a user