diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-11-12 11:35:13 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-20 14:54:51 -0800 |
commit | ccc737870153d1b73c99f3bcfafc6e09ea6b718b (patch) | |
tree | f11f71b3c242e830b791175cf2cc20a9e6312cb4 /drivers/mfd | |
parent | 2630765e027d3cd600839b8dd59e7d5691428aff (diff) |
USB: gadget: cdc-acm deadlock fix
commit e50ae572b33646656fa7037541613834dcadedfb upstream.
This fixes a deadlock appearing with some USB peripheral drivers
when running CDC ACM gadget code.
The newish (2.6.27) CDC ACM event notification mechanism sends
messages (IN to the host) which are short enough to fit in most
FIFOs. That means that with some peripheral controller drivers
(evidently not the ones used to verify the notification code!!)
the completion callback can be issued before queue() returns.
The deadlock would come because the completion callback and the
event-issuing code shared a spinlock. Fix is trivial: drop
that lock while queueing the message.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/mfd')
0 files changed, 0 insertions, 0 deletions