Re: [PATCH] scsi: snic: fix memory leak with using debugfs_lookup()

Martin K. Petersen
2023-02-08T23:51:15Z

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