aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorTyrel Datwyler <[email protected]>2019-01-10 02:59:09 +0000
committerMartin K. Petersen <[email protected]>2021-10-19 02:38:34 +0000
commit3319a8ba82b9f9c18568b18bc1febb34ae18b2c2 (patch)
tree7990ca3b0698730a4387ac4fa477565929761207 /drivers/scsi/scsi_debug.c
parentscsi: mpi3mr: Use scnprintf() instead of snprintf() (diff)
downloadkernel-3319a8ba82b9f9c18568b18bc1febb34ae18b2c2.tar.gz
kernel-3319a8ba82b9f9c18568b18bc1febb34ae18b2c2.zip
scsi: ibmvscsi: Use GFP_KERNEL with dma_alloc_coherent() in initialize_event_pool()
During driver probe we allocate a dma region for our event pool. Currently, zero is passed for the gfp_flags parameter. Driver probe callbacks are run in process context and we hold no locks so we can sleep here if necessary. Fix by passing GFP_KERNEL explicitly to dma_alloc_coherent(). Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Brian King <[email protected]> Signed-off-by: Tyrel Datwyler <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions