Message ID | 20211222091630.922788-1-hch@lst.de |
---|---|
State | New |
Headers | show |
Series | initio: don't use GFP_DMA in initio_probe_one | expand |
Christoph, > The driver doesn't express DMA addressing limitation under 32-bits > anywhere else, so remove the spurious GFP_DMA allocation. Applied to 5.17/scsi-staging, thanks!
diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 9cdee38f5ba33..5f96ac47d7fd1 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -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; }
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 <hch@lst.de> --- drivers/scsi/initio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)