Commit a5e0f69c authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

Staging: ced1401: fix missing unlock on error in FreeCircBlock()



Add the missing unlock on the error handle path in function
FreeCircBlock().

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d82c65f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;