From: Bernd Porr Date: Thu, 11 Nov 2004 00:20:21 +0000 (+0000) Subject: The memory allocation flag GFP_KERNEL is not permissible in an X-Git-Tag: r0_7_70~90 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09cf33bdb0bcf943d7e05069bf3ba786237fe5e5;p=comedi.git 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. --- 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