Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4449319rwb; Sat, 10 Dec 2022 08:30:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tuSy15G9EYMEn0Xwbsnbcmg6GWjQ4aKcpPjtDGpDWewmSBIh3S5SraXT2AGibsMGD6M0a X-Received: by 2002:a17:902:d48b:b0:189:63be:8abf with SMTP id c11-20020a170902d48b00b0018963be8abfmr12750108plg.53.1670689816447; Sat, 10 Dec 2022 08:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670689816; cv=none; d=google.com; s=arc-20160816; b=HtM/VwhdrZWSvXijXY+riTgeQuBJkwPL21Blol5cIwENZpyygttSofhMC5iG6MSyZm JhzDk17rxEco21siCTSfCIIVxJe5eEn5NpdxEjsuUAc1fVGdbG2UETSc9tBAl1VMfOc3 9toWpUgvygq3JhbfdhBpBsvq+9zsvMjOQoTyxhBVCwnJSyC/PsS2ZiArLZNJiDvOR/e/ sW+JlBoDilrV/pGauZQ1WMLshqwywYr1QHspGIGtxqpa4RridSMprXIZ/gi2Qy4URaQE dI54X3FWtXrGK58r6RZZvrslXebNqJEP/MMZGA+NuONnBev9FB9RcxXC2Ep+YGOIKB4v gbOw== 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=aHugNhoXeV/vtxHQHf1bUJUP/PNye4aBKhH4vilRX9k=; b=Gwda2bopWn3vyRYkj1JTjylU0UOHadHAVnifITiDib3b928FfnIuqYSgPpagJftMT3 xo//w5ED5aG51O+XK0mOuU54wn95lfYsxkGl+hkYvc6ew8diip9tK7A6SCE3jaVTYdX+ 4i/OwuglGOIn5qw8hUJOdj1MIKmUZCgfO39DsgWLEnxTFmWyURsPRtVZkMmYnqGO/O0Y qtLv2gWSIunbfKckheUXJuJMi3gILXzEFlYO6gIuwcqvNEAObm91ZEP6roL+aIAHJfeV qkwibomMziScr1tYZQhXJhHb7nNX9gj968mVEaCiH2oUq9C8JqdV2PAELoUBomG1ZCSH ULdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=WC2+qGRn; 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 q5-20020a170902bd8500b001895a1d382dsi4274686pls.451.2022.12.10.08.30.05; Sat, 10 Dec 2022 08:30:16 -0800 (PST) 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=WC2+qGRn; 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 S229821AbiLJQGM (ORCPT + 74 others); Sat, 10 Dec 2022 11:06:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbiLJQGJ (ORCPT ); Sat, 10 Dec 2022 11:06:09 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8398E186F7; Sat, 10 Dec 2022 08:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1670688347; bh=UAb7ldzD3tHL8gu70PvIFz+mnBkn1chzH5limOUuYsw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=WC2+qGRnwHZeYHj5Lb3TMBeX6YsRFoGp7XIIcgj0vs7SLPLznN9XD7OfcCU2205xN Y09Dmv0KPPsz7T1O13liVhUY8naXDHusFEd/jd81W9EuwqysBrb830Yqfc2Md2mNow NRXfcX0AFA3kfrHYfY6yzpFgnKOdLi8rp+h72uMiNGVVWrRbjF6GzaYAfYnx8zSMTt IPh3KGoWEIA16briH6q+H+HCzvXfm/a+e342AA7vu/1T6M+NWJQyKav7bpUaEuK0q5 9SySa5jbhsTnnso/KxY79u/NOfWzDZfGl9XAd25YNhwJono3Ulto6i67OYG/zcrWoZ BtEHIwjwELNYg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([92.116.157.120]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZCbB-1pQMZO2pyj-00VC2f; Sat, 10 Dec 2022 17:05:47 +0100 Message-ID: Date: Sat, 10 Dec 2022 17:05:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v2 1/2] video: fbdev: uvesafb: Fixes an error handling path in uvesafb_probe() Content-Language: en-US To: Christophe JAILLET , Michal Januszewski , Antonino Daplas , Andrew Morton Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <0eba6acb70fa1270d8cf798afd11ce342aa7e8e1.1670671944.git.christophe.jaillet@wanadoo.fr> From: Helge Deller In-Reply-To: <0eba6acb70fa1270d8cf798afd11ce342aa7e8e1.1670671944.git.christophe.jaillet@wanadoo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:1o0OJtIJZku0ozeLcuTXL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yXr0 4w7fWdNTgfDc/mxhcU/B+UfNcbY25lctAXHWl9NCtOhqIilrqXQcULhn8RogjKI8D6HIl7m0c L7neJHT2FR30rL9h57rbM8tbl3eLaECMFWIJvGZC51bsS1IDt2BnsGEACw5WQDyPatZ0Ri+j+ Fb4lnuEdg+kOzLOq6dPrT7zaZHE= X-Spam-Status: No, score=-3.1 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,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 12/10/22 12:35, Christophe JAILLET wrote: > If an error occurs after a successful uvesafb_init_mtrr() call, it must = be > undone by a corresponding arch_phys_wc_del() call, as already done in th= e > remove function. > > This has been added in the remove function in commit 63e28a7a5ffc > ("uvesafb: Clean up MTRR code") > > Fixes: 8bdb3a2d7df4 ("uvesafb: the driver core") > Signed-off-by: Christophe JAILLET Both patches applied. Thanks! Helge > --- > Unsure about the Fixes tag, maybe it is 63e28a7a5ffc > > Change in v2: > - add arch_phys_wc_del() at the right place in the error handling pat= h > > v1 (a long time ago!): > https://lore.kernel.org/all/dd2a4806d3a570ab84947806f38a494454fd0245.162= 2994310.git.christophe.jaillet@wanadoo.fr/ > --- > drivers/video/fbdev/uvesafb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb= .c > index 00d789b6c0fa..0e3cabbec4b4 100644 > --- a/drivers/video/fbdev/uvesafb.c > +++ b/drivers/video/fbdev/uvesafb.c > @@ -1758,6 +1758,7 @@ static int uvesafb_probe(struct platform_device *d= ev) > out_unmap: > iounmap(info->screen_base); > out_mem: > + arch_phys_wc_del(par->mtrr_handle); > release_mem_region(info->fix.smem_start, info->fix.smem_len); > out_reg: > release_region(0x3c0, 32);