[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq15ycbzphb.fsf@ca-mkp.ca.oracle.com>
Date: Wed, 08 Feb 2023 18:50:53 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
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>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: snic: fix memory leak with using debugfs_lookup()
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!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists