diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-22 13:07:35 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 13:26:41 -0700 |
commit | 96a031a2dac72a54cbbd5edca7de4cd5b5ea1d44 (patch) | |
tree | 9b5a4ab18e3f65616dc966682b51f265b5ef2455 /drivers/staging/vt6655 | |
parent | 02560efe697e58cde85e7c8002dab8b0ff57bb2e (diff) | |
download | op-kernel-dev-96a031a2dac72a54cbbd5edca7de4cd5b5ea1d44.zip op-kernel-dev-96a031a2dac72a54cbbd5edca7de4cd5b5ea1d44.tar.gz |
Staging: vt6655: fix missing unlock on error in vCommandTimer()
Add the missing unlock on the error handle path in function
vCommandTimer.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r-- | drivers/staging/vt6655/wcmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/vt6655/wcmd.c b/drivers/staging/vt6655/wcmd.c index 94bd1fc..6d0b87a 100644 --- a/drivers/staging/vt6655/wcmd.c +++ b/drivers/staging/vt6655/wcmd.c @@ -412,6 +412,7 @@ vCommandTimer ( if (!is_channel_valid(pMgmt->uScanChannel)) { DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel pMgmt->uScanChannel = %d \n",pMgmt->uScanChannel); s_bCommandComplete(pDevice); + spin_unlock_irq(&pDevice->lock); return; } //printk("chester-pMgmt->uScanChannel=%d,pDevice->byMaxChannel=%d\n",pMgmt->uScanChannel,pDevice->byMaxChannel); |