diff options
Diffstat (limited to 'lib/kobject.c')
-rw-r--r-- | lib/kobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 4b08e0ff95c8..0aa4e906916a 100644 --- a/lib/kobject.c +++ b/lib/kobject.c | |||
@@ -681,7 +681,7 @@ int subsys_create_file(struct kset *s, struct subsys_attribute *a) | |||
681 | 681 | ||
682 | if (subsys_get(s)) { | 682 | if (subsys_get(s)) { |
683 | error = sysfs_create_file(&s->kobj, &a->attr); | 683 | error = sysfs_create_file(&s->kobj, &a->attr); |
684 | subsys_put(s); | 684 | kset_put(s); |
685 | } | 685 | } |
686 | return error; | 686 | return error; |
687 | } | 687 | } |