]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/kobject.h
Update bcachefs sources to e1f6739c4a bcachefs: Fix another iterator counting bug
[bcachefs-tools-debian] / include / linux / kobject.h
index bba5c638631d9dac0ee657fa7b6dd7bd5407d345..d5241786723b82af17ecd12d63573c985ae0ff2b 100644 (file)
@@ -121,7 +121,10 @@ static inline struct kobject *kobject_get(struct kobject *kobj)
        return kobj;
 }
 
-static inline void kset_unregister(struct kset *kset) {}
+static inline void kset_unregister(struct kset *kset)
+{
+       kfree(kset);
+}
 
 #define kset_create_and_add(_name, _u, _parent)                                \
        ((struct kset *) kzalloc(sizeof(struct kset), GFP_KERNEL))