diff options
author | Christoph Hellwig <hch@lst.de> | 2021-12-22 10:08:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-27 09:04:30 +0100 |
commit | b24ef0a4974a95c9ee1aade3f39b90fc30ac552d (patch) | |
tree | 84c40d59059f8acf1919b5620b976d3338d17704 /drivers/scsi/sr.c | |
parent | 0734d421e01e9cc81d0c768b80b20500539dfc9a (diff) | |
download | linux-stable-b24ef0a4974a95c9ee1aade3f39b90fc30ac552d.tar.gz linux-stable-b24ef0a4974a95c9ee1aade3f39b90fc30ac552d.tar.bz2 linux-stable-b24ef0a4974a95c9ee1aade3f39b90fc30ac552d.zip |
scsi: sr: Don't use GFP_DMA
[ Upstream commit d94d94969a4ba07a43d62429c60372320519c391 ]
The allocated buffers are used as a command payload, for which the block
layer and/or DMA API do the proper bounce buffering if needed.
Link: https://lore.kernel.org/r/20211222090842.920724-1-hch@lst.de
Reported-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 84dd776d36c3..fdbd5c691d33 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c @@ -885,7 +885,7 @@ static void get_capabilities(struct scsi_cd *cd) /* allocate transfer buffer */ - buffer = kmalloc(512, GFP_KERNEL | GFP_DMA); + buffer = kmalloc(512, GFP_KERNEL); if (!buffer) { sr_printk(KERN_ERR, cd, "out of memory.\n"); return; |