summaryrefslogtreecommitdiff
path: root/drivers/usb/storage/ene_ub6250.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-02 16:32:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-06 13:46:42 +0100
commit7a6952fa0366d4408eb8695af1a0578c39ec718a (patch)
tree0a0c9576a3e37f30f3867b6db091da8e6a9567c9 /drivers/usb/storage/ene_ub6250.c
parent7a038a681b7df78362d9fc7013e5395a694a9d3a (diff)
USB: gadget: pxa27x_udc: 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: Daniel Mack <daniel@zonque.org> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Robert Jarzmik <robert.jarzmik@free.fr> Link: https://lore.kernel.org/r/20230202153235.2412790-12-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage/ene_ub6250.c')
0 files changed, 0 insertions, 0 deletions