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:
Jesper Nilsson 2011-03-21 11:52:41 +01:00
parent 7673538cf8
commit 33874cb8cd
1 changed files with 1 additions and 1 deletions

View File

@ -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;