]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: siano: Fix error handling in smsdvb_module_init()
authorYuan Can <yuancan@huawei.com>
Tue, 22 Oct 2024 06:50:37 +0000 (14:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:39:14 +0000 (07:39 +0200)
commit8069810d8cc85656abffa683f75caf8014187b6a
treea03c08e4fefe0ee70da6686d354a8e64261d2ff0
parent1b86c1917e16bafbbb08ab90baaff533aa36c62d
media: siano: Fix error handling in smsdvb_module_init()

commit 734ac57e47b3bdd140a1119e2c4e8e6f8ef8b33d upstream.

The smsdvb_module_init() returns without checking the retval from
smscore_register_hotplug().
If the smscore_register_hotplug() failed, the module failed to install,
leaving the smsdvb_debugfs not unregistered.

Fixes: 3f6b87cff66b ("[media] siano: allow showing the complete statistics via debugfs")
Cc: stable@vger.kernel.org
Signed-off-by: Yuan Can <yuancan@huawei.com>
Acked-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/common/siano/smsdvb-main.c