Skip to contentSkip to conversation

initio: don't use GFP_DMA in initio_probe_one

PATCH Applied Christoph Hellwig 2 participants 2 messages Dec 22, 2021 – Dec 23, 2021 SCSI

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/scsi/initio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/initio.c +2 -1
index 9cdee38f5ba33..5f96ac47d7fd1 100644
@@ -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
#1 lore raw

Christoph,

Quoted 2 lines

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!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering