aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-02-08 17:02:30 +0100
committerGreg Kroah-Hartman <[email protected]>2023-03-06 07:52:03 +0100
commitec738ca127d07ecac6afae36e2880341ec89150e (patch)
tree44a2065b5a953e90c4855070f08b97798a0515a3 /lib/mpi/mpi-bit.c
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
mtd: spi-nor: fix memory leak when using debugfs_lookup()
When calling debugfs_lookup() the result must have dput() called on it, otherwise the memory will leak over time. To solve this, remove the lookup and create the directory on the first device found, and then remove it when the module is unloaded. Cc: Tudor Ambarus <[email protected]> Cc: Pratyush Yadav <[email protected]> Cc: Miquel Raynal <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Vignesh Raghavendra <[email protected]> Cc: [email protected] Reviewed-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions