Skip to content

Commit f6a290b

Browse files
antonblanchardJames Bottomley
authored and
James Bottomley
committed
[SCSI] mpt2sas: _scsih_smart_predicted_fault uses GFP_KERNEL in interrupt context
_scsih_smart_predicted_fault is called in an interrupt and therefore must allocate memory using GFP_ATOMIC. Signed-off-by: Anton Blanchard <[email protected]> Cc: <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent dc47ce9 commit f6a290b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/mpt2sas/mpt2sas_scsih.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4335,7 +4335,7 @@ _scsih_smart_predicted_fault(struct MPT2SAS_ADAPTER *ioc, u16 handle)
43354335
/* insert into event log */
43364336
sz = offsetof(Mpi2EventNotificationReply_t, EventData) +
43374337
sizeof(Mpi2EventDataSasDeviceStatusChange_t);
4338-
event_reply = kzalloc(sz, GFP_KERNEL);
4338+
event_reply = kzalloc(sz, GFP_ATOMIC);
43394339
if (!event_reply) {
43404340
printk(MPT2SAS_ERR_FMT "failure at %s:%d/%s()!\n",
43414341
ioc->name, __FILE__, __LINE__, __func__);

0 commit comments

Comments
 (0)