diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-22 05:22:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-22 20:28:43 (GMT) |
commit | a5e0f69c983a142daa95b70f709a3dabf76cb55f (patch) | |
tree | 000a9c7e321ea53b08ec4450365bcb43d8b041f8 /drivers/staging/ced1401 | |
parent | 7d82c65f04b00093088002a1d8c147006c98f960 (diff) | |
download | linux-a5e0f69c983a142daa95b70f709a3dabf76cb55f.tar.xz |
Staging: ced1401: fix missing unlock on error in FreeCircBlock()
Add the missing unlock on the error handle path in function
FreeCircBlock().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ced1401')
-rw-r--r-- | drivers/staging/ced1401/ced_ioc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c index c9492ed..5813aee 100644 --- a/drivers/staging/ced1401/ced_ioc.c +++ b/drivers/staging/ced1401/ced_ioc.c @@ -1508,7 +1508,7 @@ int FreeCircBlock(DEVICE_EXTENSION * pdx, TCIRCBLOCK __user * pCB) iReturn = U14ERR_BADAREA; if (copy_to_user(pCB, &cb, sizeof(cb))) - return -EFAULT; + iReturn = -EFAULT; mutex_unlock(&pdx->io_mutex); return iReturn; |