diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-11-29 14:17:25 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-30 02:16:15 (GMT) |
commit | e143ef8f297d980037149fe2dc62af72621a0f5e (patch) | |
tree | 7562c2477f9d47a5dacd91b3ece9c0565c72170e /drivers/staging | |
parent | a171516c3490fed2a06bc621f9ef5cc1e0e6749e (diff) | |
download | linux-e143ef8f297d980037149fe2dc62af72621a0f5e.tar.xz |
staging: gdm72xx: unlock on error in init_usb()
We recently added locking here and there was an error path which is
missing an unlock.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/gdm72xx/gdm_usb.c b/drivers/staging/gdm72xx/gdm_usb.c index 3709824..bce6104 100644 --- a/drivers/staging/gdm72xx/gdm_usb.c +++ b/drivers/staging/gdm72xx/gdm_usb.c @@ -205,6 +205,7 @@ static int init_usb(struct usbwm_dev *udev) for (i = 0; i < MAX_NR_SDU_BUF; i++) { t = alloc_tx_struct(tx); if (t == NULL) { + spin_unlock_irqrestore(&tx->lock, flags); ret = -ENOMEM; goto fail; } |