From 09cf33bdb0bcf943d7e05069bf3ba786237fe5e5 Mon Sep 17 00:00:00 2001 From: Bernd Porr Date: Thu, 11 Nov 2004 00:20:21 +0000 Subject: [PATCH] The memory allocation flag GFP_KERNEL is not permissible in an interrupt callback. It has to be GFP_ATOMIC. The submit_urb function has been called with the wrong kernel kernel flag. It's now GFP_ATOMIC. Thanks for the feedback from Dave Brownell. --- include/linux/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/usb.h b/include/linux/usb.h index b4a1d04d..331c2b25 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -32,7 +32,7 @@ #define PROBE_ERR_RETURN(x) NULL #else #define USB_ALLOC_URB(x) usb_alloc_urb(x,GFP_KERNEL) -#define USB_SUBMIT_URB(x) usb_submit_urb(x,GFP_KERNEL) +#define USB_SUBMIT_URB(x) usb_submit_urb(x,GFP_ATOMIC) #define PROBE_ERR_RETURN(x) x #endif -- 2.26.2