maru_camera : fixed a bug locking up
authorjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 17 Dec 2012 04:19:13 +0000 (13:19 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Mon, 17 Dec 2012 04:19:13 +0000 (13:19 +0900)
fixed a bug locking up when the camera is starting.

Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
drivers/maru/maru_camera.c

index 2428e4142ad0a8357057bca145c0a24b67e3b57d..0b5f26a85b6d1b6708b0cf63a75666ecbe505306 100644 (file)
@@ -771,6 +771,7 @@ static int vidioc_queryctrl(struct file *file, void *priv,
        case V4L2_CID_SHARPNESS:
                break;
        default:
+               mutex_unlock(&dev->mlock);
                return -EINVAL;
        }