summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_mid.c
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2017-12-13 10:11:08 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2017-12-21 03:11:51 +0100
commitb128458876975898221cc69c76ad72a5d3cbf297 (patch)
tree46e24ed29fc2967c110a449fb6dd39bca849aeb1 /drivers/scsi/qla2xxx/qla_mid.c
parentscsi: arcmsr: simplify arcmsr_request_device_map routine (diff)
downloadlinux-b128458876975898221cc69c76ad72a5d3cbf297.tar.xz
linux-b128458876975898221cc69c76ad72a5d3cbf297.zip
scsi: qedi: Fix a possible sleep-in-atomic bug in qedi_process_tmf_resp
The driver may sleep under a spinlock. The function call path is: qedi_cpu_offline (acquire the spinlock) qedi_fp_process_cqes qedi_mtask_completion qedi_process_tmf_resp kzalloc(GFP_KERNEL) --> may sleep To fix it, GFP_KERNEL is replaced with GFP_ATOMIC. This bug is found by my static analysis tool(DSAC) and checked by my code review. Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Acked-by: Manish Rangankar <Manish.Rangankar@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_mid.c')
0 files changed, 0 insertions, 0 deletions