Jia-Ju Bai b128458876 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>
2017-12-20 21:11:51 -05:00
..
2017-10-19 12:46:43 +01:00
2017-03-13 15:33:09 -07:00
2017-05-04 12:19:44 -07:00
2017-05-18 13:21:40 -04:00
2017-03-13 15:33:09 -07:00
2017-03-13 15:33:09 -07:00
2017-09-07 12:12:43 -07:00
2017-03-13 15:33:09 -07:00
2017-08-24 22:28:50 -04:00