Skip to content

Commit a0c1c18

Browse files
Christoph Hellwigmartinkpetersen
authored andcommitted
scsi: aacraid: remove bogus GFP_DMA32 specifies
For one GFP_DMA32 does not actually work with kmalloc, as we only have GFP_DMA and GFP_KERNEL caches, but not GFP_DMA32. Second the memory is mapped using the proper DMA API anyway, which would include proper bounce buffering if needed by the device. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent af6c5d5 commit a0c1c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/scsi/aacraid/commctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg)
845845
rcode = -EINVAL;
846846
goto cleanup;
847847
}
848-
p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32);
848+
p = kmalloc(sg_count[i], GFP_KERNEL);
849849
if (!p) {
850850
dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n",
851851
sg_count[i], i, usg->count));
@@ -886,7 +886,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg)
886886
rcode = -EINVAL;
887887
goto cleanup;
888888
}
889-
p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32);
889+
p = kmalloc(sg_count[i], GFP_KERNEL);
890890
if (!p) {
891891
dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n",
892892
sg_count[i], i, upsg->count));

0 commit comments

Comments
 (0)