Files
linux/drivers/staging/pi433
Greg Kroah-Hartman 2f36e789e5 staging: pi433: fix memory leak with using debugfs_lookup()
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.  This requires saving off the root directory dentry to make
creation of individual device subdirectories easier.

Cc: Paulo Miguel Almeida <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Sidong Yang <[email protected]>
Cc: Liu Shixin <[email protected]>
Cc: "Uwe Kleine-König" <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-02-06 10:45:34 +01:00
..
…