]> Pileus Git - ~andy/linux/blobdiff - samples/kobject/kset-example.c
Merge branch 'x86-x32-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / samples / kobject / kset-example.c
index d0c687fd9802220bd558303f54ccd683e77a3803..5dce351f131f8c154048124bc1bf3a6a32cb32c7 100644 (file)
@@ -262,6 +262,7 @@ baz_error:
 bar_error:
        destroy_foo_obj(foo_obj);
 foo_error:
+       kset_unregister(example_kset);
        return -EINVAL;
 }