Searched hist:e756bc56 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/samples/kobject/ |
H A D | kset-example.c | e756bc56 Tue Oct 08 15:20:24 CDT 2013 Bjorn Helgaas <bhelgaas@google.com> 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> e756bc56 Tue Oct 08 15:20:24 CDT 2013 Bjorn Helgaas <bhelgaas@google.com> 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>
|