]> git.baikalelectronics.ru Git - kernel.git/commit
USB gadget: gadgetfs dont try to lock before free
authorMilan Svoboda <msvoboda@ra.rockwell.com>
Wed, 9 Aug 2006 05:14:43 +0000 (22:14 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:54 +0000 (11:58 -0700)
commit813109d85257a8dde0c8e6140b39ab369eacc0b2
tree6c9fe746a803f26b5c853c7cbb646a867b3f13a4
parentdaeab015f66087886c48a285fbd7234c1d51d30f
USB gadget: gadgetfs dont try to lock before free

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.

Signed-off-by: Milan Svoboda <msvoboda@ra.rockwell.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/inode.c