Skip to content

Commit

Permalink
CRISv10: Fix return before mutex_unlock in pcf8563
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Contini <s.contini@oltrelinux.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
Jesper Nilsson committed Mar 21, 2011
1 parent 7673538 commit 33874cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/cris/arch-v10/drivers/pcf8563.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33874cb

Please sign in to comment.