aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2023-02-02 15:14:11 +0000
committerPetr Mladek <[email protected]>2023-02-03 09:42:02 +0000
commit55bf243c514553e907efcf2bda92ba090eca8c64 (patch)
tree6c826587056778dff3fab40c7b2629e5b8a78da7 /drivers/fpga/fpga-bridge.c
parentdocs: gdbmacros: print newest record (diff)
downloadkernel-55bf243c514553e907efcf2bda92ba090eca8c64.tar.gz
kernel-55bf243c514553e907efcf2bda92ba090eca8c64.zip
kernel/printk/index.c: 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. Cc: Chris Down <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: John Ogness <[email protected]> Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Reviewed-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions