Skip to content

Commit

Permalink
video: exynos_mipi_dsi: Unlock the mutex before returning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Tomi Valkeinen committed Oct 30, 2013
1 parent fa3fd89 commit 8900346
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/exynos/exynos_mipi_dsi_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8900346

Please sign in to comment.