diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-11-29 17:17:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-29 18:16:15 -0800 |
commit | e143ef8f297d980037149fe2dc62af72621a0f5e (patch) | |
tree | 7562c2477f9d47a5dacd91b3ece9c0565c72170e /drivers/staging/gdm72xx | |
parent | a171516c3490fed2a06bc621f9ef5cc1e0e6749e (diff) | |
download | blackbird-op-linux-e143ef8f297d980037149fe2dc62af72621a0f5e.tar.gz blackbird-op-linux-e143ef8f297d980037149fe2dc62af72621a0f5e.zip |
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/gdm72xx')
-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 3709824e7ca3..bce6104bbab8 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; } |