]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: siano: fix memory leak of debugfs members in smsdvb_hotplug
authorKeita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp>
Wed, 9 Sep 2020 12:56:57 +0000 (14:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:55 +0000 (13:46 +0100)
commitbaa2d9f9ac23936801b5e862e68e2ae9636c2d2d
treed8968d45c3495d43d58cd08f96a30b44430ab9c1
parent81dfcd5256280cdc45823a9484df9f0baf0511e6
media: siano: fix memory leak of debugfs members in smsdvb_hotplug

[ Upstream commit abf287eeff4c6da6aa804bbd429dfd9d0dfb6ea7 ]

When dvb_create_media_graph fails, the debugfs kept inside client should
be released. However, the current implementation does not release them.

Fix this by adding a new goto label to call smsdvb_debugfs_release.

Fixes: 0d3ab8410dcb ("[media] dvb core: must check dvb_create_media_graph()")
Signed-off-by: Keita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/common/siano/smsdvb-main.c