Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6571743ybl; Wed, 15 Jan 2020 06:51:26 -0800 (PST) X-Google-Smtp-Source: APXvYqxSjAqQINDBzfWOzdBA6pMvt7YDl878C8TQqk0VlFYAqzLiRwkbO8JbG0H5J5a6WSwdeioB X-Received: by 2002:a9d:7f83:: with SMTP id t3mr2836395otp.115.1579099885970; Wed, 15 Jan 2020 06:51:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579099885; cv=none; d=google.com; s=arc-20160816; b=0qAsvF47gxmlG7fvAgJdCh8tnaUGUbI37jubUTc5qgGky5nuLtLnQaiugrGOqHushV bwCGSkdFHdryJnzAznTuIGq5de12vfTUDYcNiW1KjxrNG00/hw06FAp2ol/5Kd+5PhOX AGhdgDivaJZKez5OlLJ0XpQ3O5SBdGmyQqiZJqQPW0vS059FT4WxQ7iFW0JyH0n1n1fr 43YS2zv0iUqKeIP+xNlsEZbLY72Tc9Xj9UlpXwiW+9bJtovsZL60srhw32LvyDmQQRZr fWXOANqtcOnMfW5pbgzIu2UneVVX1HYFTEiW+G9fow+znQTOKY4qseUHkAAy8f4pQPBe 4nZg== 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=NXPvp1zYgb9gUmV9qAl2ZhCLamS6Ygtjex83I12F2Xk=; b=TgG+T+mTX2RgS3Omkb85pMT6bwhC2xwOeO87t9oHnMJ2oeYZtDvjt7xQ7ZY7XtUle/ 5rYyxjSekO62VczF6YTGL+O2VHkifW6ORZ0FrPvynbP5ppICP5Va20/nbIH/An35kSWS 7h77XAkk1pTOhX6QYkbdxQn0zVvaJ4jiB1GLUq4+/lxhQc9MVz4iSVojYa0TdN61/W9Z X/F9DzXWWLtOnY43ev4vE5CzYhI53FSG1uzeX7Ipomi0lh7HvSUMlbAUcrhYQNXbV0Lk yqMuLwt1kbUrA/HWunPdwL0DdfYut44mDeuRb0UYz/WqM6jXwQiLvm7IRoe8S+BneEBF yILQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cRTE0535; 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 f190si9998906oig.229.2020.01.15.06.51.14; Wed, 15 Jan 2020 06:51:25 -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=cRTE0535; 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 S1729113AbgAOOuV (ORCPT + 99 others); Wed, 15 Jan 2020 09:50:21 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:47091 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728890AbgAOOuU (ORCPT ); Wed, 15 Jan 2020 09:50:20 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200115145018euoutp01692e294a1f4256053632c2b5d1ca397b~qFusd-yf10791207912euoutp01g for ; Wed, 15 Jan 2020 14:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200115145018euoutp01692e294a1f4256053632c2b5d1ca397b~qFusd-yf10791207912euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579099818; bh=NXPvp1zYgb9gUmV9qAl2ZhCLamS6Ygtjex83I12F2Xk=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=cRTE0535aT5viddPt8EH6g7TTxAc7M9OM6bH+ROgfHtUtEQWFVJuKJdUOa/hbB7V6 m1Rp/v0uyvoUih/9wM1lYEpTUoXTkcUmaR8PGa4bxyB5fiutZ9V25H5e2A1ivhSku2 KI9hb54+lIU0piv5tdSUNdMPdDNMeW6oOZM+C+fU= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200115145018eucas1p19c95153872d7a1895718036fa17c8918~qFusYbRyR2783327833eucas1p1R; Wed, 15 Jan 2020 14:50:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 7E.7E.61286.AA62F1E5; Wed, 15 Jan 2020 14:50:18 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200115145018eucas1p260f7cb61e0dc9738cc5fd3bff9dd3b27~qFusJbuO81408814088eucas1p28; Wed, 15 Jan 2020 14:50:18 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200115145018eusmtrp21b96c9875b5a8e01641a8242416f3216~qFusI7DwW0683306833eusmtrp2M; Wed, 15 Jan 2020 14:50:18 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-2d-5e1f26aa99c5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FF.4A.07950.AA62F1E5; Wed, 15 Jan 2020 14:50:18 +0000 (GMT) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200115145016eusmtip271834eddaaa45ebe9074e4e891b665e8~qFuquTwu52322023220eusmtip2g; Wed, 15 Jan 2020 14:50:16 +0000 (GMT) Subject: Re: [PATCH v2] video: fbdev: vesafb: add missed release_region To: Chuhong Yuan Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: <69c018bc-b51b-0eab-39bc-6cd14a0245e5@samsung.com> Date: Wed, 15 Jan 2020 15:50:16 +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: <20191205160712.32245-1-hslester96@gmail.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsWy7djP87qr1OTjDNrnC1hc+fqezWL2oZfM Fif6PrBaXN41h82BxWPnrLvsHve7jzN5fN4kF8AcxWWTkpqTWZZapG+XwJXxoPkFW8FH7oqt v6obGM9xdjFycEgImEg83FTWxcjFISSwglFiyZlGZgjnC6PEihv/2boYOYGcz4wSz96lgdgg DY+ub2WBKFrOKNH19SOU85ZR4sWSHawgVcIC7hLPl81jAbFFBNQlPu/ayQ5iMwskSJxedA8s ziZgJTGxfRUjiM0rYCdx5Pg8ZhCbRUBVYsnjzUwgtqhAhMSnB4dZIWoEJU7OfALWywnUO+XK AzaImeISt57MZ4Kw5SW2v50D9oKEQD+7xM41XawQZ7tINB3dwwhhC0u8Or6FHcKWkfi/E6QZ pGEdo8TfjhdQ3dsZJZZP/scGUWUtcefcLzZQiDELaEqs36UPEXaUWHHiFCskIPkkbrwVhDiC T2LStunMEGFeiY42IYhqNYkNyzawwazt2rmSeQKj0iwkr81C8s4sJO/MQti7gJFlFaN4amlx bnpqsWFearlecWJucWleul5yfu4mRmA6Of3v+KcdjF8vJR1iFOBgV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5e25ZzIW/tOoVuhcPm74usO4n/ncwgH //OxYypsVXwZf1R3lq7Goa1s1aE5h76IGF1TYinOSDTUYi4qTgQA/uL3LLUCAAA= X-CMS-MailID: 20200115145018eucas1p260f7cb61e0dc9738cc5fd3bff9dd3b27 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20191205160725eucas1p226595a8d3043f48183a0a646bda61b4c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191205160725eucas1p226595a8d3043f48183a0a646bda61b4c References: <20191205160712.32245-1-hslester96@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/5/19 5:07 PM, Chuhong Yuan wrote: > The driver forgets to free the requested irq in remove and probe > failure. This is I/O region not IRQ. > Add the missed calls to fix it. > > Signed-off-by: Chuhong Yuan > --- > Changes in v2: > - Modify commit message. > > drivers/video/fbdev/vesafb.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/video/fbdev/vesafb.c b/drivers/video/fbdev/vesafb.c > index d9c08f6c2155..fbb196a8bbf6 100644 > --- a/drivers/video/fbdev/vesafb.c > +++ b/drivers/video/fbdev/vesafb.c > @@ -468,6 +468,7 @@ static int vesafb_probe(struct platform_device *dev) > fb_info(info, "%s frame buffer device\n", info->fix.id); > return 0; > err: > + release_region(0x3c0, 32); There is one 'goto err;' instance before request_region() which needs to be taken care of first. > arch_phys_wc_del(par->wc_cookie); > if (info->screen_base) > iounmap(info->screen_base); > @@ -480,6 +481,7 @@ static int vesafb_remove(struct platform_device *pdev) > { > struct fb_info *info = platform_get_drvdata(pdev); > > + release_region(0x3c0, 32); > unregister_framebuffer(info); The order of operations on remove should be the reverse of order of operations on probe. [ We cannot release I/O region while framebuffer is active. ] > framebuffer_release(info); Please fix the patch and re-submit. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics