diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-30 05:09:59 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-06-05 21:15:08 -0400 |
commit | a0c1c185fbe2cd6052059604380b26441e2f935f (patch) | |
tree | 4dac32f80e5ebdbb048b37cbb5c4fee334f7b539 /drivers/scsi | |
parent | af6c5d5e01ad9f2c9ca38cccaae6b5d67ddd241f (diff) |
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 <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/aacraid/commctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index a2b3430072c7..25f6600d6c09 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c | |||
@@ -845,7 +845,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) | |||
845 | rcode = -EINVAL; | 845 | rcode = -EINVAL; |
846 | goto cleanup; | 846 | goto cleanup; |
847 | } | 847 | } |
848 | p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32); | 848 | p = kmalloc(sg_count[i], GFP_KERNEL); |
849 | if (!p) { | 849 | if (!p) { |
850 | dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", | 850 | dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", |
851 | sg_count[i], i, usg->count)); | 851 | sg_count[i], i, usg->count)); |
@@ -886,7 +886,7 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) | |||
886 | rcode = -EINVAL; | 886 | rcode = -EINVAL; |
887 | goto cleanup; | 887 | goto cleanup; |
888 | } | 888 | } |
889 | p = kmalloc(sg_count[i], GFP_KERNEL|GFP_DMA32); | 889 | p = kmalloc(sg_count[i], GFP_KERNEL); |
890 | if (!p) { | 890 | if (!p) { |
891 | dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", | 891 | dprintk((KERN_DEBUG"aacraid: Could not allocate SG buffer - size = %d buffer number %d of %d\n", |
892 | sg_count[i], i, upsg->count)); | 892 | sg_count[i], i, upsg->count)); |