From patchwork Fri Oct 25 05:12:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3094221 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 825ED9F2B8 for ; Fri, 25 Oct 2013 05:13:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9760E20497 for ; Fri, 25 Oct 2013 05:13:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5E8620490 for ; Fri, 25 Oct 2013 05:13:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752361Ab3JYFN4 (ORCPT ); Fri, 25 Oct 2013 01:13:56 -0400 Received: from mail-pb0-f48.google.com ([209.85.160.48]:61788 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202Ab3JYFNz (ORCPT ); Fri, 25 Oct 2013 01:13:55 -0400 Received: by mail-pb0-f48.google.com with SMTP id mc8so707995pbc.21 for ; Thu, 24 Oct 2013 22:13:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=egkUN8EMAOQnJQe5eISBf5VigXPbx/CtNMX2AT+Sft0=; b=gzcRVPBcZg5NG6WxmwdhVxiCxNGvXquMRrJZ5bC2icFS80u7bKje7RODCj8zM4T01j l9xtjd5KqwzyH6hP50gRsUE2V7O8MZ6sNNNIvegJ/Ug60hHDbsEHC9QT6xnjy7yZ/RlO DHQi1G3FP5D1GciMFAzoQYFin51pY9n9g1AcQMnhraoqZuOYjUVh484quFz+WH85Qebk 5H6qoEoIruYd/MjmSFTQnDNPA4y+n39oO8mezC61oGQ1hT2mrQTGjK83qfDaIFNVwcFX gwZaC9Hh7OXolP2+PdC8oJk3NMwRolYwShlpVyt6Yey2YeqfV1GdnyVZVRaiKvmK/T+5 6Vrw== X-Gm-Message-State: ALoCoQlmdG2TLdsVfVADLlwPGK6tehmkCwiWrIt3cxQyluETAI09qalao6SGJyUO5znhtkZf/mLZ X-Received: by 10.66.227.39 with SMTP id rx7mr8574583pac.44.1382678035120; Thu, 24 Oct 2013 22:13:55 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id so2sm6602919pbc.5.2013.10.24.22.13.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Oct 2013 22:13:54 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: inki.dae@samsung.com, dh09.lee@samsung.com, tomi.valkeinen@ti.com, sachin.kamat@linaro.org Subject: [PATCH 1/1] video: exynos_mipi_dsi: Unlock the mutex before returning Date: Fri, 25 Oct 2013 10:42:44 +0530 Message-Id: <1382677964-15298-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mutex should be unlocked before returning. Fixes mutex lock-unlock imbalance issue. Signed-off-by: Sachin Kamat --- drivers/video/exynos/exynos_mipi_dsi_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index 520fc9b..649d9e6 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -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; }