Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6594268ybl; Wed, 15 Jan 2020 07:10:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwJn1ajZ95OMiYvFmc74+xtdyEPj/ThrDVgxbZefX6v+N7SXf/MiDLAF9lnv+KZ5wqjsPJJ X-Received: by 2002:aca:5588:: with SMTP id j130mr183342oib.122.1579101042689; Wed, 15 Jan 2020 07:10:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579101042; cv=none; d=google.com; s=arc-20160816; b=mtfl5zAUvEYo+VcpTb/qpKm2stU8vC9jyDD2xi2LKKv970J3kBRvi+tdvOZzQeIhRj OZ5T2p/u9lQI/xKo6DnpOaKuncjl6f6mJQcOM0uy0/hEm3OPMY0XlBLACXtevkqPoDMX iYzIyG3znDi519fKTqNOM34U2fkNCEFifG3PsiM1ZAFNElqN7AQtePFfdMj1o7Ssdzwr KWc9S0nP/3DxCWEn1w9S6S4r6Gk95hAKORvBoqIRaMZ5e9LpP0z5B85p+gjQUIzKss0m zfsUBuWxw50NKp40X8A9y3K2LT7vnGpsQ4zTCJZa8ABD75XYxxlcA0vZ1W+YtfzuaxyQ AMGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=pgc0KbIHRZtV95G/YdItWgVEQnJDvr037YYBXdbWFl8=; b=Tkb6fmyDHN6E1LPVK6ldE+OL62KaaS5qxcNnKYqsRqUcd3uzRcW0J/vFqWWGcPxrpD AiISikoYDIktS0gaptCS3SPvLIv+sNkJReTNydvlFxVGQ/jQH9Cx1iG08O3O9pTWVhu9 6GnVybr6na7cBuBxgQzzqZt0HPCT0ES6XVU0SOFGxxLnln82E4zKBeL31/0x9Cydw+jr trT2Wt8M0EnK0w1ZUYRHKI6TlPTiq53uV0yJtfHqTmu2M6cV60pZsqFpmBCczXzhfQ0G FEfY+Ahzhog+cUWaGWqlmzNYn2Qcr7fo/MUqhkk9gY4dNjeQmQpHnHKaEsA3dfITxBXf In/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NGkEro7E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h24si8823246oie.151.2020.01.15.07.10.29; Wed, 15 Jan 2020 07:10:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NGkEro7E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729146AbgAOPJK (ORCPT + 99 others); Wed, 15 Jan 2020 10:09:10 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54175 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbgAOPJK (ORCPT ); Wed, 15 Jan 2020 10:09:10 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200115150908euoutp013440f42927bb65d310eb12d832c9e163~qF-JH8frj2496124961euoutp01C for ; Wed, 15 Jan 2020 15:09:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200115150908euoutp013440f42927bb65d310eb12d832c9e163~qF-JH8frj2496124961euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579100948; bh=pgc0KbIHRZtV95G/YdItWgVEQnJDvr037YYBXdbWFl8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=NGkEro7EDp2UhDipKS1U4C+qMuVCgMjDl7mzkBMYf5p36+EapQEYEyyU7hx7a0xHh On+OaTOUZyfGfVg6Ap8Bg0/wiFjAvEnYPGyB3OiGeEXcxc8uCJGD6rI3hy+NcS6JpQ RrnX/ujtCw6CKHyg6kDa8yGRf7QKoLpzXktw6W0E= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200115150908eucas1p283cbcbee603710bc567640c991d16d20~qF-I9hzn81992219922eucas1p2X; Wed, 15 Jan 2020 15:09:08 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 0F.0D.60679.41B2F1E5; Wed, 15 Jan 2020 15:09:08 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200115150907eucas1p2c04f054556f4751704eab807edc807e4~qF-IaDPiU1970519705eucas1p2d; Wed, 15 Jan 2020 15:09:07 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200115150907eusmtrp1a93425a3f9c857758d4679fc42bb4876~qF-IZW_HC0299102991eusmtrp1I; Wed, 15 Jan 2020 15:09:07 +0000 (GMT) X-AuditID: cbfec7f4-0e5ff7000001ed07-49-5e1f2b14df6f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BA.DC.07950.31B2F1E5; Wed, 15 Jan 2020 15:09:07 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200115150907eusmtip2493072d5318fb15fcb5d627b60128478~qF-IEsI8p0507205072eusmtip20; Wed, 15 Jan 2020 15:09:07 +0000 (GMT) Subject: Re: [PATCH] video: fbdev: arcfb: add missed free_irq To: Chuhong Yuan Cc: Jaya Kumar , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: <76ebce76-6f24-c4c4-f067-3989a2c41710@samsung.com> Date: Wed, 15 Jan 2020 16:09:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191116154416.19390-1-hslester96@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsWy7djPc7oi2vJxBo2z5C2ufH3PZjH70Etm i2nH/jFZnOj7wGpxedccNgdWj52z7rJ7bGvex+pxv/s4k8fnTXIBLFFcNimpOZllqUX6dglc GYs3XWMueMZZcWbiD9YGxr/sXYycHBICJhKrb7xn62Lk4hASWMEoseDvASjnC6PEkv9TWSCc z4wSr7Z9hGvpWbCJCSKxnFHi6pF97BDOW0aJu28mALVwcAgL2Eos2lgD0iAioC7xeddOsBpm gSZGidP3exlBEmwCVhIT21eB2bwCdhJ/bsxlBrFZBFQlXj9pZAKxRQUiJD49OMwKUSMocXLm ExYQmxOo9/T8i2AXMQuIS9x6Mp8JwpaX2P52DjPIMgmBRewSz67NYAQ5SELAReL0lViID4Ql Xh3fAvWNjMTpyT0sEPXrGCX+dryAat7OKLF88j82iCpriTvnfrGBDGIW0JRYv0sfIuwo8fz6 W2aI+XwSN94KQtzAJzFp23SoMK9ER5sQRLWaxIZlG9hg1nbtXMk8gVFpFpLPZiH5ZhaSb2Yh 7F3AyLKKUTy1tDg3PbXYKC+1XK84Mbe4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q wBa/IzWZlinzp5cxycjfWnYwLnrZy2OLOJpCpN++5Hziu+J7jDhTabPYrCXvt5kFnpH/GbHs yte+hflfyjlVls8tN43ZIyR8+PjzP/9XnzTQiOfIDZ2bvPZ9zlUlluKMREMt5qLiRABX0wpP wQIAAA== X-CMS-MailID: 20200115150907eucas1p2c04f054556f4751704eab807edc807e4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20191116154430eucas1p21c738a988e3bc0c3544a388c71f4a75c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191116154430eucas1p21c738a988e3bc0c3544a388c71f4a75c References: <20191116154416.19390-1-hslester96@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/19 4:44 PM, Chuhong Yuan wrote: > The driver forgets to free irq in remove which is requested in > probe. > Add the missed call to fix it. > > Signed-off-by: Chuhong Yuan > --- > drivers/video/fbdev/arcfb.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c > index a48741aab240..7aed01f001a4 100644 > --- a/drivers/video/fbdev/arcfb.c > +++ b/drivers/video/fbdev/arcfb.c > @@ -590,8 +590,11 @@ static int arcfb_probe(struct platform_device *dev) > static int arcfb_remove(struct platform_device *dev) > { > struct fb_info *info = platform_get_drvdata(dev); > + struct arcfb_par *par = info->par; > > if (info) { > + if (irq) > + free_irq(par->irq, info); > unregister_framebuffer(info); We cannot free IRQ while framebuffer is registered (as we can deadlock in arcfb_ioctl()). Also it seems that ordering in the probe function is wrong (it should not request IRQ or initialize the hardware after registering framebuffer). > vfree((void __force *)info->screen_base); > framebuffer_release(info); Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics