Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753964AbcLFTdc (ORCPT ); Tue, 6 Dec 2016 14:33:32 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34828 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751515AbcLFTd3 (ORCPT ); Tue, 6 Dec 2016 14:33:29 -0500 Date: Tue, 6 Dec 2016 21:33:20 +0200 From: Krzysztof Kozlowski To: Shailendra Verma Cc: Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Junghak Sung , Julia Lawall , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Shailendra Verma , vidushi.koul@samsung.com Subject: Re: [PATCH] exynos-gsc: Clean up file handle in open() error path. Message-ID: <20161206193320.GA14210@kozik-lap> References: <1480653927-6850-1-git-send-email-shailendra.v@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1480653927-6850-1-git-send-email-shailendra.v@samsung.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1290 Lines: 39 On Fri, Dec 02, 2016 at 10:15:27AM +0530, Shailendra Verma wrote: > The File handle is not yet added in the vfd list.So no need to call > v4l2_fh_del(&ctx->fh) if it fails to create control. > > Signed-off-by: Shailendra Verma > --- > drivers/media/platform/exynos-gsc/gsc-m2m.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I think I see this and exynos4-is patch for the third time... 1. sent in a very short time-frame (usually resending is after 2 weeks), 2. without any change log (should be after --- separator), 3. with different subjects (really...), 4. without versioning (use git format-patch -v2 etc). Please, keep it a little bit more organized... Look at examples on mailing lists how (and when) people are sending patches. Best regards, Krzysztof > > diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c > index 9f03b79..5ea97c1 100644 > --- a/drivers/media/platform/exynos-gsc/gsc-m2m.c > +++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c > @@ -664,8 +664,8 @@ static int gsc_m2m_open(struct file *file) > > error_ctrls: > gsc_ctrls_delete(ctx); > -error_fh: > v4l2_fh_del(&ctx->fh); > +error_fh: > v4l2_fh_exit(&ctx->fh); > kfree(ctx); > unlock: > -- > 1.7.9.5 >