From patchwork Fri Dec 14 08:33:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jhbird.choi@samsung.com X-Patchwork-Id: 1877771 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 54D5ADF230 for ; Fri, 14 Dec 2012 08:33:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940Ab2LNIdR (ORCPT ); Fri, 14 Dec 2012 03:33:17 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:53845 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827Ab2LNIdR (ORCPT ); Fri, 14 Dec 2012 03:33:17 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MF000H9QIEQXPV0@mailout1.samsung.com> for linux-fbdev@vger.kernel.org; Fri, 14 Dec 2012 17:33:15 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 83.02.01231.B44EAC05; Fri, 14 Dec 2012 17:33:15 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-76-50cae44b2aef Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 43.02.01231.B44EAC05; Fri, 14 Dec 2012 17:33:15 +0900 (KST) Received: from DOJHBIRDCHO03 ([12.23.118.55]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MF000AB8IFFQF00@mmp1.samsung.com> for linux-fbdev@vger.kernel.org; Fri, 14 Dec 2012 17:33:15 +0900 (KST) From: Jonghwan Choi To: 'Jonghwan Choi' , linux-fbdev@vger.kernel.org Cc: 'Inki Dae' , 'Donghwa Lee' , 'Kyungmin Park' References: In-reply-to: Subject: [PATCH] video: exynos_mipi_dsi: Add missing mutex_unlock Date: Fri, 14 Dec 2012 17:33:15 +0900 Message-id: <000801cdd9d5$a9536a10$fbfa3e30$%choi@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac3UU7JChG9HUPmOSmS1yogq1IvRFwCU02+wAMsDA7AAAJhdgA== Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsVy+t8zI13vJ6cCDHoWGlqc6PvA6sDo8XmT XABjFJdNSmpOZllqkb5dAlfGy+NtzAXHWCuWflRuYLzK0sXIySEhYCJx7OFMZghbTOLCvfVs XYxcHEICyxglem+vYIIpunrpApgtJLCIUeLmPw2IorlMEvfX7QCbxCagK3Fs/RZWEFtEwEvi 9NfHYA3MAlUSa96fYO9i5ABq4JZY3RwEEuYU4JFY96cTbLGwgKPE6Ys97CA2i4CqxPu31xhB bF4BO4nDO7exQNiCEj8m32OBGKklsX7ncajx8hKb17xlBhkvIaAu8eivLsQFThKPHvcyQ5SI SOx78Y4RYryAxLfJh1ggymUlNh1gBvlEQmARu8Tpa1vYIN6VlDi44gbLBEaJWUg2z0KyeRaS zbOQrFjAyLKKUTS1ILmgOCk911CvODG3uDQvXS85P3cTIySqpHYwrmywOMQowMGoxMP7UehU gBBrYllxZe4hRgkOZiURXskjQCHelMTKqtSi/Pii0pzU4kOMPkCXT2SWEk3OB0Z8Xkm8obGx iZmJqYm5pam5KQ5hJXHeZo+UACGB9MSS1OzU1ILUIphxTBycUg2Mu84arghZFK1yzuJ/1G6z gzfkz4acnrFf4yfr1nW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ender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Add a mutex_unlock on the error path. Signed-off-by: Jonghwan Choi --- drivers/video/exynos/exynos_mipi_dsi_common.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index 3cd29a4..bd7f4f2 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -377,6 +377,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; }