Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3866738pxk; Tue, 8 Sep 2020 04:53:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOGdG3/3RjPDBxVzQDETEzZCSnyD2UPxwRjliOWBaivFGTJ31C9n88OuinfafkSVFctv6d X-Received: by 2002:a17:907:72c5:: with SMTP id du5mr26549989ejc.469.1599566018823; Tue, 08 Sep 2020 04:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599566018; cv=none; d=google.com; s=arc-20160816; b=PfOv+u9Aap0F/hLXZRApmRLJlHJKvAcypngQ96lhTzNKbgaCii8i3CipZlG1McMUdo 8STNXewgwNUFIbk4HpDQZr3OxuKsjbaRveRxzBvP3dKu4u4S7ii2dmJGXuI+8pVLXyVr v2cJeUvVjh+8zQOzb+Wly8f8YsDOl8AbzCuWYHekH573PVsEOTEZ+41xCIHo/ciKHPXF UAkWA0WE88MOnW+Cw2X0Dz3kd0ZssnbKcDT0jLZiRIjF2SuYJ/gFmNoasVKn7WaPOoq8 5rgY0HoyUmbK8l3IDjNwVa8BtjOD/wJoR88Sb9gXPGwNeG1vlc0uhLSiJjRW5G78TGX6 np4w== 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:cc:to:subject:from:dkim-signature :dkim-filter; bh=u9UQaTNidvGz8xQGItwzPmBXxLlY6mtig4v20LZiBcA=; b=Qf1lm+REjdvPz9ersD6WPNF1PFobA0tdhmEd9wYNGUomYnAVgSPvY0+4Y1tbjORsE4 TDGAQO+r/cTRi2TJEInkNp0rxKj8Yix4M1mFbhy/cKFkQZng5JlYOzN3PC/VqAmpG/tX pAhL1l8tJ8JGqj42Y6d6CHParCykwU4CNsB7MZouSBSvMpd6sSL+v32sX2nqDTaquMVf uBzvdk6srVojXAedOw2cdb7MLdzOOTQ7L6vSUwg2a2/f7/XYkz0Eof6hBWU6FpZQKnn+ ejHV0jnD0DDkk+r1qfCHLMB2LyhEnAdMkN54FUCXFsBcKYOhHomWlJ4u86GoCq6edshy zgTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pxxpHzQ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id v25si8764115eja.693.2020.09.08.04.53.15; Tue, 08 Sep 2020 04:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=pxxpHzQ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730046AbgIHLsK (ORCPT + 99 others); Tue, 8 Sep 2020 07:48:10 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45320 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730145AbgIHLkQ (ORCPT ); Tue, 8 Sep 2020 07:40:16 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200908113738euoutp016166ea840e3370571ae89bd83ef83483~yy-IQYn0k0798807988euoutp01U for ; Tue, 8 Sep 2020 11:37:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200908113738euoutp016166ea840e3370571ae89bd83ef83483~yy-IQYn0k0798807988euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1599565058; bh=u9UQaTNidvGz8xQGItwzPmBXxLlY6mtig4v20LZiBcA=; h=From:Subject:To:Cc:Date:In-Reply-To:References:From; b=pxxpHzQ8C0Np3EljBRn599F6UekUpq0odohU1EiiF9oWYqJh2F+n8nBF/vnm14LbQ hUZuZYzVI6/0xrfrDxViE0Wfki+2e/+4/hgmcdroM+kp+fz7BBOijWrEXbPuHIdmbc DxLkzhc48rmVpYYkuR2tRn9RELla9rQM+q2Yf39I= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200908113737eucas1p13c031767f380c909bd65a2d5f8fc5365~yy-IB21KJ0523205232eucas1p12; Tue, 8 Sep 2020 11:37:37 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 1B.5E.06456.10D675F5; Tue, 8 Sep 2020 12:37:37 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200908113737eucas1p191e5a7978d1850ad527b5a2cc4a13e2d~yy-Hk8FjS1315613156eucas1p1E; Tue, 8 Sep 2020 11:37:37 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200908113737eusmtrp2994e6741e398941d03b4ae8a58ba6c95~yy-HkX-tO3046530465eusmtrp2l; Tue, 8 Sep 2020 11:37:37 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-0a-5f576d01e018 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B1.C4.06017.10D675F5; Tue, 8 Sep 2020 12:37:37 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200908113737eusmtip1ea17ac50b289d3922cdc34eb5e8e3509~yy-HOYl930442004420eusmtip1X; Tue, 8 Sep 2020 11:37:37 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] video: fbdev: radeon: Fix memleak in radeonfb_pci_register To: Mathieu Malaterre , Dinghao Liu Cc: kjlu@umn.edu, Benjamin Herrenschmidt , Linux Fbdev development list , dri-devel , LKML Message-ID: Date: Tue, 8 Sep 2020 13:37:36 +0200 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: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAKsWRmVeSWpSXmKPExsWy7djP87qMueHxBm37zSw+NLUyW2z/3shi ceXrezaLE/POsluc6PvAanF51xw2i7Ob3rI4sHv8apvL7NHzpoXV4373cSaPqwub2D0+b5Lz 6Nz1li2ALYrLJiU1J7MstUjfLoEro7//OXPBYq6KT1e+szYwzuXoYuTkkBAwkfgz8ydLFyMX h5DACkaJ87dXsEM4Xxglbj/7ywjhfGaUuD71ADtMy/OdU6BaljNKfNv9iQ0kISTwllGiZycr iM0mYCUxsX0VI4gtLBAocX7abSYQW0QgQGLL95tgK5gFrjJK/F38nRkkwStgJ3F08yEwm0VA ReLF/s9g20QFIiQ+PTjMClEjKHFy5hMWEJsTaOiK96/AapgFxCVuPZnPBGHLS2x/O4cZZIGE wD52iV29vUANHECOi8SmRbUQHwhLvDq+BeobGYn/O0F6QerXAR3U8QKqeTujxPLJ/9ggqqwl 7pz7xQYyiFlAU2L9Ln2IsKPE37fdUPP5JG68FYS4gU9i0rbpzBBhXomONiGIajWJDcs2sMGs 7dq5knkCo9IsJJ/NQvLNLCTfzELYu4CRZRWjeGppcW56arFhXmq5XnFibnFpXrpecn7uJkZg Ojr97/inHYxfLyUdYhTgYFTi4f3gFRYvxJp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lnGVbMONRuL3s3ah/PwxeHrqQ63k4R nMaS2WA2U0QlzfhmCMd7UW+rxW8fljXW8rTZ88Zr+0seY3jIV9rWGGBbX3T4gnNA8RQjiWMC 6xTrLptGKLEUZyQaajEXFScCAHezqRfWAgAA X-CMS-MailID: 20200908113737eucas1p191e5a7978d1850ad527b5a2cc4a13e2d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200825074817eucas1p29ac412697c8579d3f66c46d9e356b4e0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200825074817eucas1p29ac412697c8579d3f66c46d9e356b4e0 References: <20200825062900.11210-1-dinghao.liu@zju.edu.cn> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/25/20 9:47 AM, Mathieu Malaterre wrote: > On Tue, Aug 25, 2020 at 9:27 AM Dinghao Liu wrote: >> >> When radeon_kick_out_firmware_fb() fails, info should be >> freed just like the subsequent error paths. >> >> Fixes: 069ee21a82344 ("fbdev: Fix loading of module radeonfb on PowerMac") >> Signed-off-by: Dinghao Liu >> --- >> drivers/video/fbdev/aty/radeon_base.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/video/fbdev/aty/radeon_base.c b/drivers/video/fbdev/aty/radeon_base.c >> index 3fe509cb9b87..13bd2bd5c043 100644 >> --- a/drivers/video/fbdev/aty/radeon_base.c >> +++ b/drivers/video/fbdev/aty/radeon_base.c >> @@ -2307,7 +2307,7 @@ static int radeonfb_pci_register(struct pci_dev *pdev, >> >> ret = radeon_kick_out_firmware_fb(pdev); >> if (ret) >> - return ret; >> + goto err_release_fb; > > Good catch ! Thanks > > Reviewed-by: Mathieu Malaterre Applied to drm-misc-next tree, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics >> /* request the mem regions */ >> ret = pci_request_region(pdev, 0, "radeonfb framebuffer"); >> -- >> 2.17.1