Hi,
thou shalt not use GFP_KERNEL in interrupt or with a spinlock held.
Regards
Oliver
You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
===================================================================
[EMAIL PROTECTED], 2002-04-11 21:31:25+02:00, [EMAIL PROTECTED]
GFP_KERNEL in interrupt or with a spinlock held
diff -Nru a/drivers/usb/net/cdc-ether.c b/drivers/usb/net/cdc-ether.c
--- a/drivers/usb/net/cdc-ether.c Thu Apr 11 21:33:46 2002
+++ b/drivers/usb/net/cdc-ether.c Thu Apr 11 21:33:46 2002
@@ -1,4 +1,4 @@
-// Portions of this file taken from
+// Portions of this file taken from
// Petko Manolov - Petkan ([EMAIL PROTECTED])
// from his driver pegasus.c
@@ -132,7 +132,7 @@
// Give this to the USB subsystem so it can tell us
// when more data arrives.
- if ( (res = usb_submit_urb(ether_dev->rx_urb, GFP_KERNEL)) ) {
+ if ( (res = usb_submit_urb(ether_dev->rx_urb, GFP_ATOMIC)) ) {
warn( __FUNCTION__ " failed submint rx_urb %d", res);
}
@@ -302,7 +302,7 @@
ether_dev->tx_urb->transfer_buffer_length = count;
// Send the URB on its merry way.
- if ((res = usb_submit_urb(ether_dev->tx_urb, GFP_KERNEL))) {
+ if ((res = usb_submit_urb(ether_dev->tx_urb, GFP_ATOMIC))) {
// Hmm... It didn't go. Tell someone...
warn("failed tx_urb %d", res);
// update some stats...
===================================================================
This BitKeeper patch contains the following changesets:
1.454
## Wrapped with gzip_uu ##
begin 664 bkpatch18681
M'XL(`!KEM3P``\5476^;,!1]CG_%E?J2J`.N;2`!*56Z).NJ=FN4K<]1`!,0
M"8Z,:3J-'S\@4J),4;JM#T,6AOMQ./?XB"MX+H3R.W*=O@A%KN"S+'3]*G*9
M"S.1&[%.\_+5E&I5)^=2UDFK"5O[#BO(#*V$**R=5!FI:V9+'290IPJ_0TU^
MB.@?6^%WYM.[Y\?;.2'#(8R39;X2WX2&X9`$V2@JQ=K,E%PFS>>J0[IBB)12
MYB!W7.I4;,"Y75$7@ZA^C%C?BP/7(RLE5J-]>R@WI^T,;4H1D5-6V=1VD4R`
MFK9C`S(+;8M28-3GU&?.-3(?$?;CC<X)`=<4#"0?X?V<QR2$NT^SQ<-T_G7Z
M"&E>+RV4*K<:I()=JA-80K%-\[4,,TC$.B(/8+.!@V1V%)`8?WD1@DLD-V<F
MB%0S=V&516"-)^.I3H0RP^,X-GH,*^[V7591;S`(X]CFH1MZ?=NY)-H)<"ZT
M%4:A(8[H[0E1CZ/C54Z?<=I:Y$+3>=.\A_[O#GJ;,;IH<^1NP[A/6T]1?FHI
M]!WO3RS%P>#_T5)[R9_`4+MVU1:975+_'QPWH4#)?7.S+)A)I5.9%R!CT$E:
M0)RN!>AE)G*(E=S4U=QIZ]NMD\;0A:X2!0RAIK,HRF"3ZD6I@F[+:!&)%^-&
MO3:1#^W\M]^?OMR/>SWHP4\RJ7W5H.VW%NU-,'T&K`<UV.&7%B8BS(IR,Q3!
/P'/C/B>_`")Y"X-/!0``
`
end
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel