mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-19 04:14:49 +08:00
scsi: mpt3sas: change allocation option
From an interrupt handler path memory may be allocated using GFP_KERNEL, replace it with GFP_ATOMIC. _base_interrupt->_scsih_io_done->_scsih_smart_predicted_fault Link: https://lore.kernel.org/r/20191024152835.6177-1-thenzl@redhat.com Signed-off-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
906ca6353a
commit
5bb2f743cd
@ -5161,7 +5161,7 @@ _scsih_smart_predicted_fault(struct MPT3SAS_ADAPTER *ioc, u16 handle)
|
|||||||
/* insert into event log */
|
/* insert into event log */
|
||||||
sz = offsetof(Mpi2EventNotificationReply_t, EventData) +
|
sz = offsetof(Mpi2EventNotificationReply_t, EventData) +
|
||||||
sizeof(Mpi2EventDataSasDeviceStatusChange_t);
|
sizeof(Mpi2EventDataSasDeviceStatusChange_t);
|
||||||
event_reply = kzalloc(sz, GFP_KERNEL);
|
event_reply = kzalloc(sz, GFP_ATOMIC);
|
||||||
if (!event_reply) {
|
if (!event_reply) {
|
||||||
ioc_err(ioc, "failure at %s:%d/%s()!\n",
|
ioc_err(ioc, "failure at %s:%d/%s()!\n",
|
||||||
__FILE__, __LINE__, __func__);
|
__FILE__, __LINE__, __func__);
|
||||||
|
Loading…
Reference in New Issue
Block a user