From a263339e7735496d401c4eb315e2e8549f8ace73 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 10 Jul 2007 02:20:49 -0400 Subject: [PATCH] Don't use GFP_DMA, it's for ISA devices GFP_DMA forces allocation in the first 16M of memory, which is not needed. USB buffers should be using GFP_KERNEL. Signed-off-by: Pavel Roskin --- at76_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/at76_usb.c b/at76_usb.c index 2d28f19..d541413 100644 --- a/at76_usb.c +++ b/at76_usb.c @@ -290,7 +290,7 @@ static int at76_usbdfu_download(struct usb_device *udev, u8 *dfu_buffer, return -EINVAL; } - dmabuf = kmalloc(DFU_PACKETSIZE, GFP_KERNEL | GFP_DMA); + dmabuf = kmalloc(DFU_PACKETSIZE, GFP_KERNEL); if (dmabuf == NULL) return -ENOMEM; -- cgit v1.2.3