diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-08 14:20:24 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 10:13:30 -0800 |
commit | e756bc5670d0f801ca43dc55b8eacde42a5b818b (patch) | |
tree | 0dc1d44a9b3c41e48c5e0689255db28f855301d3 /crypto/ctr.c | |
parent | bfc5c17337145955b31c22b96a6e07def048471b (diff) | |
download | linux-stable-e756bc5670d0f801ca43dc55b8eacde42a5b818b.tar.gz linux-stable-e756bc5670d0f801ca43dc55b8eacde42a5b818b.tar.bz2 linux-stable-e756bc5670d0f801ca43dc55b8eacde42a5b818b.zip |
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>
Diffstat (limited to 'crypto/ctr.c')
0 files changed, 0 insertions, 0 deletions