From: Milan Svoboda Date: Wed, 9 Aug 2006 05:14:43 +0000 (-0700) Subject: USB gadget: gadgetfs dont try to lock before free X-Git-Tag: v2.6.19-rc1~899^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a94da8971e836f32315f8832b0bf3e88bee9efae;p=pandora-kernel.git 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 Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed