scsi: be2iscsi: Use GFP_ATOMIC under spin lock
A spin lock is taken here so we should use GFP_ATOMIC.
Fixes: 987132167f
("scsi: be2iscsi: Fix for crash in beiscsi_eh_device_reset")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
e01ea5e2a3
commit
f253473699
|
@ -294,7 +294,7 @@ static int beiscsi_eh_device_reset(struct scsi_cmnd *sc)
|
|||
beiscsi_conn = conn->dd_data;
|
||||
phba = beiscsi_conn->phba;
|
||||
|
||||
inv_tbl = kzalloc(sizeof(*inv_tbl), GFP_KERNEL);
|
||||
inv_tbl = kzalloc(sizeof(*inv_tbl), GFP_ATOMIC);
|
||||
if (!inv_tbl) {
|
||||
spin_unlock_bh(&session->frwd_lock);
|
||||
beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_EH,
|
||||
|
|
Loading…
Reference in New Issue