summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/kobject.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index bba5c638..d5241786 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -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))