aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
diff options
context:
space:
mode:
authorJesper Nilsson <jespern@axis.com>2011-03-21 06:52:41 -0400
committerJesper Nilsson <jespern@axis.com>2011-03-21 06:52:41 -0400
commit33874cb8cdce865938094e1a317cbfe2d7fb1ad7 (patch)
treef0c1844d5bd5235c8cb0d16b0569de4ec7f094a9 /arch/cris
parent7673538cf8c9ddd1eeb2c3712b5603816f576483 (diff)
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>
Diffstat (limited to 'arch/cris')
-rw-r--r--arch/cris/arch-v10/drivers/pcf8563.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/drivers/pcf8563.c b/arch/cris/arch-v10/drivers/pcf8563.c
index ea69faba9b62..1391b731ad1c 100644
--- a/arch/cris/arch-v10/drivers/pcf8563.c
+++ b/arch/cris/arch-v10/drivers/pcf8563.c
@@ -345,7 +345,7 @@ static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned
345 int ret; 345 int ret;
346 346
347 mutex_lock(&pcf8563_mutex); 347 mutex_lock(&pcf8563_mutex);
348 return pcf8563_ioctl(filp, cmd, arg); 348 ret = pcf8563_ioctl(filp, cmd, arg);
349 mutex_unlock(&pcf8563_mutex); 349 mutex_unlock(&pcf8563_mutex);
350 350
351 return ret; 351 return ret;