diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-09-29 19:12:29 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-10-14 15:07:37 +0200 |
| commit | c43bcd2b2aa3c2ca9d2433c3990ecbc2c47d10eb (patch) | |
| tree | 99290f06832d9b355e070d4427313d80ddf71f68 /include/uapi/linux/securebits.h | |
| parent | 203ee65bfdb29753d1a4d2f8efba6c0c7eccdd71 (diff) | |
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: a56960e8b406 ("[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>
Diffstat (limited to 'include/uapi/linux/securebits.h')
0 files changed, 0 insertions, 0 deletions
