CRISv10: Fix return before mutex_unlock in pcf8563
authorJesper Nilsson <jespern@axis.com>
Mon, 21 Mar 2011 10:52:41 +0000 (11:52 +0100)
committerJesper Nilsson <jespern@axis.com>
Mon, 21 Mar 2011 10:52:41 +0000 (11:52 +0100)
Signed-off-by: Simone Contini <s.contini@oltrelinux.com>
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/arch-v10/drivers/pcf8563.c

index ea69faba9b6212f00a731652e96966ed1116186c..1391b731ad1c5579b5317098bfc0c381270f34bb 100644 (file)
@@ -345,7 +345,7 @@ static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned
        int ret;
 
        mutex_lock(&pcf8563_mutex);
        int ret;
 
        mutex_lock(&pcf8563_mutex);
-       return pcf8563_ioctl(filp, cmd, arg);
+       ret = pcf8563_ioctl(filp, cmd, arg);
        mutex_unlock(&pcf8563_mutex);
 
        return ret;
        mutex_unlock(&pcf8563_mutex);
 
        return ret;