]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
component: do not try to unbind unbound components
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 28 Feb 2025 08:18:24 +0000 (09:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 16:05:40 +0000 (18:05 +0200)
commit5bcca36898aab843eb259984c29de7ff9e0d8723
treee350d355efe5391448d4c3165c2eccbe8550bcdf
parenteaa0d30216c1d54b157ea0ad7f35ba76f6e9a825
component: do not try to unbind unbound components

Error handling is apparently hard and driver authors often get it wrong.

Continue to warn but do not try to unbind components that have never
been bound in order to avoid crashing systems where such a buggy
teardown path is hit.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250228081824.4640-1-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/component.c