[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y+Tmy/2VY9O6w1gC@kroah.com>
Date: Thu, 9 Feb 2023 13:27:55 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: "Martin K. Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org, Karan Tilak Kumar <kartilak@...co.com>,
Sesidhar Baddela <sebaddel@...co.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: snic: fix memory leak with using debugfs_lookup()
On Wed, Feb 08, 2023 at 06:50:53PM -0500, Martin K. Petersen wrote:
>
> Greg,
>
> > When calling debugfs_lookup() the result must have dput() called on
> > it, otherwise the memory will leak over time. To make things simpler,
> > just call debugfs_lookup_and_remove() instead which handles all of the
> > logic at once.
>
> Applied to 6.3/scsi-staging, thanks!
Wonderful, thank you!
Powered by blists - more mailing lists