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

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)