]> Pileus Git - ~andy/linux/commitdiff
video: exynos_mipi_dsi: Unlock the mutex before returning
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 25 Oct 2013 05:12:44 +0000 (10:42 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 30 Oct 2013 11:52:36 +0000 (13:52 +0200)
Mutex should be unlocked before returning. Fixes mutex lock-unlock
imbalance issue.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/exynos/exynos_mipi_dsi_common.c

index 9b321652b8107125f2eb740df82c85aeb522402e..7eed957b6014eb09dc2262c47d28b813d21b21ed 100644 (file)
@@ -376,6 +376,7 @@ int exynos_mipi_dsi_rd_data(struct mipi_dsim_device *dsim, unsigned int data_id,
                        "data id %x is not supported current DSI spec.\n",
                        data_id);
 
+               mutex_unlock(&dsim->lock);
                return -EINVAL;
        }