Messages in this thread | | | Date | Fri, 3 Feb 2023 11:53:53 +0900 | From | Sergey Senozhatsky <> | Subject | Re: [PATCH] kernel/printk/index.c: fix memory leak with using debugfs_lookup() |
| |
On (23/02/02 16:14), Greg Kroah-Hartman wrote: > > 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 <chris@chrisdown.name> > Cc: Petr Mladek <pmladek@suse.com> > Cc: Sergey Senozhatsky <senozhatsky@chromium.org> > Cc: Steven Rostedt <rostedt@goodmis.org> > Cc: John Ogness <john.ogness@linutronix.de> > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
| |