staging: gdm72xx: Fix spinlock recursion on gdm_usb_send_complete
authorBen Chan <benchan@chromium.org>
Thu, 7 Jun 2012 06:01:26 +0000 (23:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 17:52:32 +0000 (10:52 -0700)
commitdd13c86b0dae86efdde98119ffd7348e80719ade
tree3578ac2a66f296062777a2734356767816894413
parent7dd80eb925a5aac4ebe8b1abec20802e91f60c2e
staging: gdm72xx: Fix spinlock recursion on gdm_usb_send_complete

This patch fixes a spinlock recursion bug on several call sites of
gdm_usb_send_complete by not calling spin_lock_irqsave on
urb->context->tx_cxt->lock when the lock has already been acquired.

Signed-off-by: Ben Chan <benchan@chromium.org>
Cc: Sage Ahn <syahn@gctsemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_usb.c