Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1981030rwe; Fri, 2 Sep 2022 06:57:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WiOut8hY0JJiMHjaT+To3dOS7DhELVkfDRrHY3z43qb9+SMVNCc5BCDd+RKphyImEtuN/ X-Received: by 2002:a05:6a00:b53:b0:537:7f7:63a7 with SMTP id p19-20020a056a000b5300b0053707f763a7mr36946987pfo.2.1662127068236; Fri, 02 Sep 2022 06:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662127068; cv=none; d=google.com; s=arc-20160816; b=nhUrEayQHlvWG0Qfs/ayqlXFkhnuKd5JvZyxm2eQat5psRRCxWgpIePuBBDZ5U8WJ6 fMUIe9DQOBDOg42zfgVJi2DHx5xW1LQbeW80XFQ0goy69o8H3DZ5b5+HZFrvA0MN1DL/ PNP39ZYsheQgkRsnNSujhIL/cr2Rc7WmI5hs9+9xhQXYxCGH6YaGYoPEFmpTh87nefV7 Ua8gmShjSihufHewkahS++Z9wDbCQ0rvwtcFR4Ava/+7jOx+TRbUrWmWK5JObw/gjMEU RQ6tUq6NPoAhnbY0uoe291i/PqlKNs6JqeebxA4c5y8hcFmnY2W+FueFyTzAz8YdXIvi 0Fgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Az1sDJIgeOin/pv3fQlbMYUyw46mfNhaf+nAQip2le8=; b=bki8ch6GVc0+woVK163Yg28cuH2em8Xb9S6+8tBP+f49/zuAX4c5ZMOLUYLipt1DXz FKkJ4LkzqfWEeMaGzdPMAl4OuaF6KewKuphttLBPCX7pqcocX2yOHjNS3lYD6PeMO4Ru fkNodCHMTmX1QuNtL7Q/9wucXKKCSZcbuNWPpZvRZIokJoTk6wKqZ8Z7EM5FUP5uGEvG fbaRFIRhfC4IBRfwe5gJN8bBSU8ERCFDWtT1KRLpvoab7laoGBzNtxxAdJwasixlGFsr 6cLESYarIlt0KhFSh8S579+VCK2u+vjJ++UHUYHpJs13f1k4Tlj81Oe2cM+YPy99bznb FuEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CQKn+VJG; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a170903230300b00174e20a8f1esi2483051plh.97.2022.09.02.06.57.35; Fri, 02 Sep 2022 06:57: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=@linuxfoundation.org header.s=korg header.b=CQKn+VJG; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237679AbiIBNkJ (ORCPT + 99 others); Fri, 2 Sep 2022 09:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237544AbiIBNjX (ORCPT ); Fri, 2 Sep 2022 09:39:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8284D15C7B2 for ; Fri, 2 Sep 2022 06:17:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1784E62049 for ; Fri, 2 Sep 2022 13:10:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8696C433D7; Fri, 2 Sep 2022 13:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662124223; bh=gyQWuNAPc+74rM0aS1MSJ4QJ6RbXShDyHWLyEiqRoQU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CQKn+VJGtrWnpB6WqDuCC3FzieeagB+gNRGChxvz9oDHXXmx2mDyYRnP3ZpCGjJUE hl7HBTss0CYdoTojxOhXu5oOiQljkG7Ke505YsbMeEwg8Vji18MsaotJ9qLIt/nOCC QNKvcStOo+s3Syd2kweL/NO710tSkB+KG4AQs0tk= Date: Fri, 2 Sep 2022 15:10:20 +0200 From: Greg Kroah-Hartman To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deuc her , Christian =?iso-8859-1?Q?K=F6nig?= , Xinhui.Pan@amd.com Cc: linux-kernel@vger.kernel.org, Leo Li , David Airlie , Daniel Vetter , Wayne Lin , hersen wu , Wenjing Liu , Patrik Jakobsson , Thelford Williams , Fangzhi Zuo , Yongzhi Liu , Mikita Lipski , Jiapeng Chong , Bhanuprakash Modem , Sean Paul , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/amd/display: fix memory leak when using debugfs_lookup() Message-ID: References: <20220902130105.139138-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220902130105.139138-1-gregkh@linuxfoundation.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, Sep 02, 2022 at 03:01:05PM +0200, Greg Kroah-Hartman wrote: > When calling debugfs_lookup() the result must have dput() called on it, > otherwise the memory will leak over time. Fix this up by properly > calling dput(). > > Cc: Harry Wentland > Cc: Leo Li > Cc: Rodrigo Siqueira > Cc: Alex Deucher > Cc: "Christian K?nig" > Cc: "Pan, Xinhui" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Wayne Lin > Cc: hersen wu > Cc: Wenjing Liu > Cc: Patrik Jakobsson > Cc: Thelford Williams > Cc: Fangzhi Zuo > Cc: Yongzhi Liu > Cc: Mikita Lipski > Cc: Jiapeng Chong > Cc: Bhanuprakash Modem > Cc: Sean Paul > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Greg Kroah-Hartman > --- Despite a zillion cc: items, I forgot to cc: stable on this. Can the maintainer add that here, or do you all want me to resend it with that item added? thanks, greg k-h