<cid:part1.08010705.09060809@ra.rockwell.com>Hello,

I spotted this during my tests with -rt on arm. The -rt patch contains some better tools
to diagnose problems with locks and some other things...

Original code tries to take semaphore in BUG_ON and then free the memory
with this semaphore.

Patch is against 2.6.17.

Signed-off-by: Milan Svoboda <[EMAIL PROTECTED]>
---

diff -uprN -X rt/Documentation/dontdiff 
../../le/2.6/orig.bak/drivers/usb/gadget/inode.c rt/drivers/usb/gadget/inode.c
--- ../../le/2.6/orig.bak/drivers/usb/gadget/inode.c    2006-06-19 
14:50:48.000000000 +0000
+++ rt/drivers/usb/gadget/inode.c       2006-06-29 14:53:07.000000000 +0000
@@ -222,7 +223,6 @@ static void put_ep (struct ep_data *data
        /* needs no more cleanup */
        BUG_ON (!list_empty (&data->epfiles));
        BUG_ON (waitqueue_active (&data->wait));
-       BUG_ON (down_trylock (&data->lock) != 0);
        kfree (data);
 }
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to