initio: don't use GFP_DMA in initio_probe_one
PATCH 1/1 initio: don't use GFP_DMA in initio_probe_one
The driver doesn't express DMA addressing limitation under 32-bits anywhere else, so remove the spurious GFP_DMA allocation.
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/scsi/initio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/initio.c +2 -1
@@ -2847,7 +2847,8 @@ static int initio_probe_one(struct pci_dev *pdev,for (; num_scb >=MAX_TARGETS +3 ; num_scb--) { i = num_scb *sizeof (struct scsi_ctrl_blk ); -if ((scb =kzalloc (i,GFP_DMA )) !=NULL ) + scb =kzalloc (i,GFP_KERNEL ); +if (scb)break ; }
Signature · 1 line
2.30.2
Martin K. Petersen
AppliedChristoph,
Quoted 2 lines
The driver doesn't express DMA addressing limitation under 32-bits anywhere else, so remove the spurious
GFP_DMAallocation.
Applied to 5.17/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering