media: gspca: Stop using GFP_DMA for buffers for USB bulk transfers
The recent "x86 ZONE_DMA love" discussion at LSF/MM pointed out that some gspca sub-drivvers are using GFP_DMA to allocate buffers which are used for USB bulk transfers, there is absolutely no need for this, drop it. Cc: "Luis R. Rodriguez" <mcgrof@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

szülő
6159e12e11
commit
5334b3426a
@@ -321,7 +321,7 @@ static void jl2005c_dostream(struct work_struct *work)
|
||||
int ret;
|
||||
u8 *buffer;
|
||||
|
||||
buffer = kmalloc(JL2005C_MAX_TRANSFER, GFP_KERNEL | GFP_DMA);
|
||||
buffer = kmalloc(JL2005C_MAX_TRANSFER, GFP_KERNEL);
|
||||
if (!buffer) {
|
||||
pr_err("Couldn't allocate USB buffer\n");
|
||||
goto quit_stream;
|
||||
|
Reference in New Issue
Block a user