mirror-linux/drivers/media/cec
Haotian Zhang c43bcd2b2a media: cec: Fix debugfs leak on bus_register() failure
In cec_devnode_init(), the debugfs directory created with
debugfs_create_dir() is not removed if bus_register() fails.
This leaves a stale "cec" entry in debugfs and prevents
proper module reloading.

Fix this by removing the debugfs directory in the error path.

Fixes: a56960e8b4 ("[media] cec: add HDMI CEC framework (core)")
Cc: stable@vger.kernel.org
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2025-10-14 15:07:37 +02:00
..
core media: cec: Fix debugfs leak on bus_register() failure 2025-10-14 15:07:37 +02:00
i2c media: cec: tda9950: add back i2c dependency 2025-04-07 08:12:12 +02:00
platform media: update Hans Verkuil's email address 2025-09-09 15:58:44 +02:00
usb media: update Hans Verkuil's email address 2025-09-09 15:59:02 +02:00
Kconfig media: CEC: keep related menu entries together 2021-10-05 09:39:32 +02:00
Makefile media: cec: i2c: ch7322: Add ch7322 CEC controller driver 2020-07-04 12:16:18 +02:00