Skip to content

Commit

Permalink
Staging: ced1401: fix missing unlock on error in FreeCircBlock()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 7d82c65 commit a5e0f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ced1401/ced_ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a5e0f69

Please sign in to comment.