Greg Kroah-Hartman cf042964c2 tty: pcn_uart: fix memory leak with using debugfs_lookup()
[ Upstream commit 04a189c720aa2b6091442113ce9b9bc93552dff8 ]

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: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230202141221.2293012-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:57:37 +01:00
..
2020-10-28 13:39:14 +01:00
2021-07-27 12:17:21 +02:00
2022-01-27 11:03:55 +01:00
2021-08-09 08:52:46 +02:00
2021-04-22 12:09:25 +02:00
2022-06-14 18:36:08 +02:00
2022-06-14 18:36:08 +02:00
2022-06-14 18:36:08 +02:00