CRISv10: Fix return before mutex_unlock in pcf8563
Signed-off-by: Simone Contini <s.contini@oltrelinux.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
parent
7673538cf8
commit
33874cb8cd
|
@ -345,7 +345,7 @@ static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned
|
|||
int ret;
|
||||
|
||||
mutex_lock(&pcf8563_mutex);
|
||||
return pcf8563_ioctl(filp, cmd, arg);
|
||||
ret = pcf8563_ioctl(filp, cmd, arg);
|
||||
mutex_unlock(&pcf8563_mutex);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue