Hi,
usb-storage uses the synchronous API in the error path indirectly.
So it must allocate memory with GFP_NOIO. Patch included.
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], 2003-01-19 12:02:42+01:00, [EMAIL PROTECTED]
- fix deadlock due to use in storage error path
message.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/drivers/usb/core/message.c b/drivers/usb/core/message.c
--- a/drivers/usb/core/message.c Sun Jan 19 12:11:10 2003
+++ b/drivers/usb/core/message.c Sun Jan 19 12:11:10 2003
@@ -88,7 +88,7 @@
int retv;
int length;
- urb = usb_alloc_urb(0, GFP_KERNEL);
+ urb = usb_alloc_urb(0, GFP_NOIO);
if (!urb)
return -ENOMEM;
@@ -131,7 +131,7 @@
int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, __u8
requesttype,
__u16 value, __u16 index, void *data, __u16 size, int timeout)
{
- struct usb_ctrlrequest *dr = kmalloc(sizeof(struct usb_ctrlrequest),
GFP_KERNEL);
+ struct usb_ctrlrequest *dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO);
int ret;
if (!dr)
===================================================================
This BitKeeper patch contains the following changesets:
1.1284
## Wrapped with gzip_uu ##
begin 664 bkpatch1926
M'XL(`,Z'*CX``\54VX[3,!!]KK]BI'WILJ29L9TT"0HJ;&%9@6A5M,]5+NY%
MO7BQ$UA0/AXGE8J*EH4%)*(HCCTSQV>.CWP&-U:9I*>WZT_*L#-XHVWEIFJO
M]VJPTCNU7>_KNX$V2Q><:>V"?KOL'RK\?.-51BGKUS;G`7-)TZPJ5N!B-NG1
M0!Q7JB^W*NG-7EW=O'LQ8RQ-X7*5[9?J@ZH@35F^&96UV@XV1F>K=K_F&&XX
M(A'Q`$404M#P2`C94(AYZ7Y+/HP7>1BSI5'+T:&\T+O3<N$`ANV`<8,D@HB-
M@0;$(PDH?"2?8B">($\DOT!*$.'0X.@^*>""P$/V$OZ>]"4KP(/%^@Y*E95;
M76S`(4*EH;8*UGNPE3;94H$R1ANXS:H5>PM\*"6;?A>0>8]\&,,,V7/X0;/2
MM#UWA^D7VBA_IZQUNP^*MAV.(0H*I*2P(0QEW"S"0(I(#L,RH@A%_I!HOP!O
M3R@F0I11(QT6[RSR\YK6,_^8_2/QB!-2[(C'CK`@WEE*X*FA,)'1[QB*@\?_
MHZ$.BD_`,Y^[USED^H#X?^"W<4Q`[+K[]FJ30^H(Y?-LZRC.W;R/3^'J]73^
M?G(].7_&QB1DFW\8>K8R=5%U%45EMD9]K)6MX$EI',YFUZ'T[?JKTHO^_;GG
;)_#'6ZE8J6)CZUVZX&H88EFR;P6-\UT3!0``
`
end
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel