diff options
| author | 2026-09-02 16:34:38 +0200 | |
|---|---|---|
| committer | 2026-09-04 16:12:24 -0700 | |
| commit | 1668a31e3b1ad358d981ddb6dbd3db1fe0533621 (patch) | |
| tree | b09fbc8ec9b9b7802c1b4fd1b6030d35a97bda8a /scripts/Makefile.thinlto | |
| parent | net: usb: cx82310_eth: drop URB after 0xffff reboot sentinel to prevent partial_data heap overflow (diff) | |
dibs: Unregister dibs_class after error
In case dibs_loopback_init() fails, e.g. because of -ENOMEM, dibs_init()
must unregister dibs_class. Otherwise dibs_class and /sys/class/dibs exist
even though the functionality is not available. A retry to load the module
fails with -EEXIST.
Unregister dibs_class in the error path of dibs_init.
Note that before
commit ad3dfa80be76 ("dibs: change dibs_class to a const struct")
class_destroy(dibs_class) is required instead of
class_unregister(&dibs_class).
Fixes: 804737349813 ("dibs: Create class dibs")
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/20260902143438.426664-1-wintera@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
