提交 33874cb8 编写于 作者: J Jesper Nilsson

CRISv10: Fix return before mutex_unlock in pcf8563

Signed-off-by: NSimone Contini <s.contini@oltrelinux.com>
Signed-off-by: NJesper Nilsson <jesper.nilsson@axis.com>
上级 7673538c
...@@ -345,7 +345,7 @@ static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned ...@@ -345,7 +345,7 @@ static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned
int ret; int ret;
mutex_lock(&pcf8563_mutex); mutex_lock(&pcf8563_mutex);
return pcf8563_ioctl(filp, cmd, arg); ret = pcf8563_ioctl(filp, cmd, arg);
mutex_unlock(&pcf8563_mutex); mutex_unlock(&pcf8563_mutex);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册