Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36331826rwd; Mon, 10 Jul 2023 22:42:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlE/B+/f4PEruUrd9qPDgsXwVxWzxrkz3xxs6an4Hrxu8nNJdqlV8UPS6O9atgIYj5aGM3P/ X-Received: by 2002:a05:6402:8d0:b0:51e:f23:5555 with SMTP id d16-20020a05640208d000b0051e0f235555mr12930635edz.33.1689054168557; Mon, 10 Jul 2023 22:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689054168; cv=none; d=google.com; s=arc-20160816; b=vlFoe0vtObE/zO35kGOePX+smQoctcXF5945fazKPlsRQH+rp3nHtDrkuz8fX3SW0m 4hVGOIWLrV4mQKLFIDfOwxxyvnYy59AbJELr/6Fkwz8el37t+LptYG+E7TJRh9XsCGk1 cW4c5Xf4YrGSMZvhbTPBaZy3803rfn/l1i1kw1arvw880CP+m9yPxQvRywiKoAZzuy8U mMKog35RuRrcu3z26/SVxopNonLj8ESBGpeOt+DrwFKfdc5dD9MI+WOsekGnZbSlUo5r zCtRzEuFx8F+jiJiN1/7FkB+uQGHF9WJGPCvOoN+M8A6+6IlOf9KpdN2jXl12ZIOM+e5 /ZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=OtxXHiYOxRZt+dXSNhBtt5zcoFcDx9sJtgdRg5sVG/Y=; fh=TJW9UTK1tJ9DiO5gBzz8xMdnZgdEe3uKM+z8xEP9Jt8=; b=Z2pc3amrNqRQNBf5Hm30j6Pdq+mBWXnHbv7/L8UArn+55qg6hwF9QyIWxz//tVO57H WqIBvfyfA7oe82029M8NsqkkGbNPV75vmjwlVas+m+TzRGCacoPA3dI5GBkGEBF8RbS/ Oa8hI5jFQPJgsxcr0sg9Z9MOM1MfdU2Z7ulGdYS86ots6DvncLUr1+PsWHVwDOUMNXzx ob1ozFVii4azym3rnJDiWyDltwdKR6DkcVLZNBCP5am0RkCXiL4ONp39Pfnna972AeaO imUePEzmEnggb7ze5R7QoYOg/i90IaYXGcF9q+zYhio2tgerKPzlI2/6Zi7byuloxcEb nBNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=EIHdv7Rp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020aa7d695000000b0051de2d71329si1232021edr.597.2023.07.10.22.42.22; Mon, 10 Jul 2023 22:42:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=EIHdv7Rp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbjGKF3q (ORCPT + 99 others); Tue, 11 Jul 2023 01:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjGKF3p (ORCPT ); Tue, 11 Jul 2023 01:29:45 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D47F7134; Mon, 10 Jul 2023 22:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1689053363; x=1689658163; i=deller@gmx.de; bh=4QllDK5N6KW5ySDanE63Wz0r1DuAJrr5WWCDUK8NUBc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=EIHdv7Rp18tH8i6AVqcdweFs/dheQ84sw1NiLc3eMs4MTKCbmIxyWKYCqsONqU+0S3WpBsa ZFkH2jXDmWitNp8vO+Ffr9nlCS6RTGw4uEEPkapyf4gYSNuE4N5n70/gdSaS4LtlM6VJdJEms ZglnOXkz0AtWOO2QLyzJ2GgrFjdPPLkcLJJo6acr/oVnK2Poy88isgBKT3bKdyZ8Ks1uci4o4 qnHrM/XeRk20ofkkKKgs1WVBSeNhRNWB+WZG+lYJHnpyXf5d3UqD6wWLP5S7z4JdgPphnlOoW VHN0I890c2Ia0VvJqhP4eXQpv27rPVM/1EUKzltXlw92gOdvczoA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([94.134.149.147]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bX1-1ptHe40ERX-010YmL; Tue, 11 Jul 2023 07:29:23 +0200 Message-ID: Date: Tue, 11 Jul 2023 07:29:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 1/4] fbdev: imxfb: Removed unneeded release_mem_region Content-Language: en-US To: Yangtao Li , Sascha Hauer , Pengutronix Kernel Team , Shawn Guo , Fabio Estevam , NXP Linux Team , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Cc: linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230710132001.50764-1-frank.li@vivo.com> From: Helge Deller In-Reply-To: <20230710132001.50764-1-frank.li@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:qhJUziMMhMozDpBHJhmj8WIcMHW5BDfy1dWmyboQDPzVPsnGowl drexJdoeA6i3GjZ5QGqjeAnX8rvxzUwzLngqOBX8cO/NFisUG0Eh3t1iUwRc+H1aXGjq/eg 4D3+jrLdfSDT6028/0XUsElylI+99FKU6iJPkbVOmKmzonofI5xjT9h/jtPkh2jO0WXvkPQ Hy2by1LxZhIZG9ox5MT4Q== UI-OutboundReport: notjunk:1;M01:P0:EG/PweqhG9Q=;duFnQUTnZGQ6CV9gE+bpwUwVofd rGERjbZp9CpdbXiyyXxgg8IG3AZoPTJMEYRsyKn9AQ0zXNMCbRc3LuBwrPWEwRgOxt4UvOeYt 3Ja6j2Er4GeUAqKw7KN1w2cSSoLttOLl3FSDUXgkLJKKR58Wt6qPeTx6FIZt6/0b6INPNxH0C E0QREFvGT3s+Ayo/ZmjtdjPKGgpaMq17IL67w2ev7vRz0p7kxSkvCNp+T6+Zo6PP5mwJ60/8z nGgc5ce77CB+U93zDiaKxr+pUj6+0bneX9WZf8rZmVlDiHRPJC5dDjW5z7JTPKZBDzRHNS2+C RJLCUMx/QaJ408O8BLKHD+2eLGC7k1nbhBCQ1vWT98ljSjCobw6aAGwsJgC7E6nupyPID+sif 6WMuw3kPqp8WrP6KvHhvYeDkr+rm+CM16FGgPZV5rggK4pxrhuw5Ui+uFMK6R+yDWD/06IKws I4zh2IPmgJI6P1iKuLV8QKSMY18FHk9A+atGJth8/5sYGbgZ1tnTcq2ltqa3qqclpAwE46HLh G862Pj9KMyIzqP90QxxfKH6M77X9K2lGcHg0J/a11+h9UE0VfjZY5+pXdWCkQMKJX/vlOF2SO xmjT+uz0Trlgg1N5MibBb1mWGmNmwPzmER84VbthQyugXDigpa9Vc8TxXPCF2X+RK7vf9fQlm VWXOVm99NmWNTiLhUhB6GW3zgETSH4xdjnrMymuvxRdlEH0gkPHZxcA8ZF5IewSWLJGc5fdKT 8hLRa80BJ8PCfuovDlsGhLAswIm6bBo3jnCVzaVxRU/UWVYHkxQAqSfwRtN4iT58UMlNPWtZw G5xMAi9wLX2sCbqi7zaWgtBFvUgjcYpzdQQkH0HvcAT2kwzoxdOiFoCAomFpOeVv6/euYmFU1 7y7s5EAThKuGi6ziqCtLp/1ebobaJ27MKHSKiT+5bvsFIv6BhMZNHCsKGhVDp5iO0ihYCBIgv 7fF6PQ== X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/10/23 15:19, Yangtao Li wrote: > Remove unnecessary release_mem_region from the error path to prevent > mem region from being released twice, which could avoid resource leak > or other unexpected issues. > > Fixes: b083c22d5114 ("video: fbdev: imxfb: Convert request_mem_region + = ioremap to devm_ioremap_resource") > Signed-off-by: Yangtao Li I've applied that series (and fixed minor grammar typos in the commit logs= ). Thanks! Helge > --- > drivers/video/fbdev/imxfb.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/video/fbdev/imxfb.c b/drivers/video/fbdev/imxfb.c > index 04f3bf30a529..385c4715c7b7 100644 > --- a/drivers/video/fbdev/imxfb.c > +++ b/drivers/video/fbdev/imxfb.c > @@ -1043,7 +1043,6 @@ static int imxfb_probe(struct platform_device *pde= v) > failed_map: > failed_ioremap: > failed_getclock: > - release_mem_region(res->start, resource_size(res)); > failed_of_parse: > kfree(info->pseudo_palette); > failed_init: