patch-2.4.19 linux-2.4.19/drivers/usb/usb-ohci.h
Next file: linux-2.4.19/drivers/usb/usb-skeleton.c
Previous file: linux-2.4.19/drivers/usb/usb-ohci.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/drivers/usb/usb-ohci.h
- Orig date:
Wed Oct 24 08:26:12 2001
diff -urN linux-2.4.18/drivers/usb/usb-ohci.h linux-2.4.19/drivers/usb/usb-ohci.h
@@ -439,7 +439,7 @@
/*-------------------------------------------------------------------------*/
-#define ALLOC_FLAGS (in_interrupt () ? GFP_ATOMIC : GFP_KERNEL)
+#define ALLOC_FLAGS (in_interrupt () || current->state != TASK_RUNNING ? GFP_ATOMIC : GFP_KERNEL)
#ifdef DEBUG
# define OHCI_MEM_FLAGS SLAB_POISON
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)