Commit e756bc5670d0f801ca43dc55b8eacde42a5b818b
Committed by
Greg Kroah-Hartman
1 parent
bfc5c17337
Exists in
master
and in
16 other branches
kobject: fix kset sample error path
Previously, example_init() leaked a kset if any of the object creations failed. This fixes the leak by calling kset_unregister() in the error path. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff