Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp307790rdb; Fri, 6 Oct 2023 04:22:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHFaX62FwLYyzctsWoZ2J9/q9ZCUcBwdIexX572OK/b5T7Gk9h+WgB/W8N9GTkmVhYg3Qi X-Received: by 2002:a05:6358:1ca:b0:135:57d0:d171 with SMTP id e10-20020a05635801ca00b0013557d0d171mr7424996rwa.15.1696591338100; Fri, 06 Oct 2023 04:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696591338; cv=none; d=google.com; s=arc-20160816; b=lPQOx5nrgcvZee9v3axaDaYinjh0peXHCENw07tBFILYevAfXX/VRlaC2YLF0nAJHE UwWk2r1jT4/TlQjwCOEHKY9I/DzXnwS6+dwKyXZVs8ekxqfXhdT08qdnx4XYZGr/WtVA ZZZerw+LY2rb2wQVJgDDkZQCQh6NUhwdlTx3RFVMY1fI2NYpa3MBM+K1UBGZh72xHAXS +cct/h9rRLQSB3vmwHTL6fOMteI6g8hruNcdWK1waYwMonWwNX42dyoPZgYnva9KFzC/ NFOPUwWN5DN/59WFtJqtptCZC+3sKgKaV4VlTPU1j2aHtSb3FNoFgXsCVWYwkHAjVdsc 4YoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oWIxnG2J+Jy/dMyxMYG3xUlceaQ+HsSfWnd1NKXS+fw=; fh=tcesuY0/UDXTSfIghOH+HfAxy/L76vZfWWkn7LPY9Kk=; b=Wl4cpF77fbu4euwc0Ua31XRPl6LTpGo3019rTxi7DSnDxNwszdGL1k6BFqiujxLBcG lR+K9PN60Xes97P0RaPHTCB1I+jiRMRYX8v+DR6A0Bm7EZEIHS4nU3e9VNUKc5IJvhA9 WIpnzCNTK9oF7nYsvzriI6/x7YZE+NCdQJe4YlXOd1kVYIdoN1EmQP3e/2bUPE1d2+x6 XJKrEGZkw8dRq1glG5NHO41M+48xfHnm0k1uNAJcV2yolgWM77Qm70ip56NSO2h3S3ai kDEmFHg1rWDfkubiitNciJFVwbWPt/sHLm5K/JKdqmvM98XTt9xrWGsetsPOBndDJpuR oyvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=HvIqtxBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id fu2-20020a17090ad18200b00279140ac5b3si5680396pjb.143.2023.10.06.04.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 04:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=HvIqtxBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4B9478083AA7; Fri, 6 Oct 2023 04:21:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232089AbjJFLUY (ORCPT + 99 others); Fri, 6 Oct 2023 07:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbjJFLUN (ORCPT ); Fri, 6 Oct 2023 07:20:13 -0400 Received: from out203-205-221-192.mail.qq.com (out203-205-221-192.mail.qq.com [203.205.221.192]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEAF1119; Fri, 6 Oct 2023 04:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1696591198; bh=oWIxnG2J+Jy/dMyxMYG3xUlceaQ+HsSfWnd1NKXS+fw=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=HvIqtxBm3oQMs8oFAO8wFLYtDIr7RAf9U0XC+4R/WGDiKz8a2QSFidbmcqWLpHrJr HD/e9P78sDXPhtiYZNpy2wdXvUtIJXNuzeQnc/1OyQLkkX0+MWE17Q6/qD8J+pCtDb 3tFdykT5J792IGIWglBJFMILOf/3RTEzScQRW5xM= Received: from [10.255.201.129] ([122.14.229.79]) by newxmesmtplogicsvrszb1-0.qq.com (NewEsmtp) with SMTP id 4D906841; Fri, 06 Oct 2023 19:19:25 +0800 X-QQ-mid: xmsmtpt1696591165t6inxp8yd Message-ID: X-QQ-XMAILINFO: M1rD3f8svNznDRsIcsNQ+c8SApwT/aeO2z0Gmtae0OnHojt/PWMwiJrUAFbnj0 mA/lVdwN2n9K9h/e2nieBg1QjnDXgN4YREP5/+MvhYFqWV34B/vkPYWtOu1CzyMwqPpcccIKDWzl E5CTqO5GkYvpTfpCjjfkz+aGNsDmPOR19PrOD0lHp/lY7VlF5Sox6YL2GKMiBeNAM814qLeOUQdi UHRi2T8Qf7e/1Bvz9NFACZfI2sWST6jjPeDZi0V+mAqUQ2qupLph6Wi2ntFys21xVdTgS+RB6pQd bmutlMiYuI9ZR1BwCRj8zO3ojbZ3/8AQxvqLiiEvs0DjQDRrgE7sPY0LF6m4uKOiw0DeOhpaVb4U EM10JFzHcf1Y0vdNBI5ytzajDptk3hq2kddK34Tw2+guWVglnN69O8NidJhOfO9Ge9zhh1Jbz1Nk Axqdp0rQWdXlMfQKB6jxrhJeErNhSf5MUSC5o/NW9tIe5XokSGBL6MRPgB6apq01IfHU8Q1G1GuP Ic+uoDQXLk8K1uOuXge9dIG4/XAaCpCzjj+bAkmVZgN9cbOYCAZR3N8kgGRwRaeCNVr2CvtRCDAg gj89CtUYENULRkbBmeuz7iraUgPd7D1V6kXBYFB7GkQtghEIKi/mXz3qVG8aQs4XYE2fcuTW1b1d fAbEdmmRWp3EhKnHOaJj58gH7l2lSqVCPWIdqEXNhI7gZfS/HkXP0JBQOMoBed4+ZqteDUL18eZc ES2C1M2F1ieky+JVDetTawztUg/lFmbrVdkH+fkPoLmyx3/cyeCQUrNbw0SLs6kqMeMDJcbwENFi jsiYzJCdUXAn5pPgmhpuFiNpVHOwe+EYXV1YrCu2clJbKzdHZNkTMteZBD03+jHlwyE9RxMijIrn XBtUcZhnq0utcurPsjeGR1qZb3Eu635NTECXgkOGNVwK9+lPX+i9VaUo6KilSPeDsFcPJTYEXMiM ek8zx5jSGSWxpp9XDxdrMm6EoKMmoqFX1CbD2BNlpe3KfwOVMlLo2CRDgsgtHvP2sFLJT+3Q3BW7 Gn1QY8GJhGmyISynz4 X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= X-OQ-MSGID: <2fc26726-9db8-466c-9760-ce2fc57e3338@foxmail.com> Date: Fri, 6 Oct 2023 19:19:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] video: fbdev: arkfb: fix possible object reference leak Content-Language: en-US To: Helge Deller Cc: tzimmermann@suse.de, jiapeng.chong@linux.alibaba.com, javierm@redhat.com, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: From: Zhang Shurong In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=4.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 06 Oct 2023 04:21:30 -0700 (PDT) Since the graphic card in question is quite old, I haven't had the opportunity to personally test it yet. I decided to send the patch because, upon careful consideration, I couldn't find any compelling reasons not to include the call to pci_disable_device(). However, I completely understand your point, and I agree that if there is no definitive explanation for why it should be ignored, it would be prudent to locate the actual hardware and conduct proper testing. I genuinely appreciate your thorough review and valuable feedback on this matter. Maybe I will find this old card and test this patch. Thank you and best regards, Shurong On 2023/10/6 16:09, Helge Deller wrote: > On 10/5/23 09:01, Zhang Shurong wrote: >> Add missing pci_disable_device() in error path in ark_pci_probe(). > > Do you have this hardware and tested your patch? > I'm sure there is a reason, why "pci_disable_device()" was commented > out in the original submission in commit 681e14730c73c... > > Additionally I'm wondering why your patch doesn't show up in > the fbdev patchwork, although you added linux-fbdev mailing list. > Probably a vger issue. > > Helge > > >> Signed-off-by: Zhang Shurong >> --- >>   drivers/video/fbdev/arkfb.c | 4 ++-- >>   1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/video/fbdev/arkfb.c b/drivers/video/fbdev/arkfb.c >> index 60a96fdb5dd8..6c4e5065646f 100644 >> --- a/drivers/video/fbdev/arkfb.c >> +++ b/drivers/video/fbdev/arkfb.c >> @@ -1064,7 +1064,7 @@ static int ark_pci_probe(struct pci_dev *dev, >> const struct pci_device_id *id) >>   err_dac: >>       pci_release_regions(dev); >>   err_request_regions: >> -/*    pci_disable_device(dev); */ >> +    pci_disable_device(dev); >>   err_enable_device: >>       framebuffer_release(info); >>       return rc; >> @@ -1085,7 +1085,7 @@ static void ark_pci_remove(struct pci_dev *dev) >> >>           pci_iounmap(dev, info->screen_base); >>           pci_release_regions(dev); >> -/*        pci_disable_device(dev); */ >> +        pci_disable_device(dev); >> >>           framebuffer_release(info); >>       } >