diff options
| author | Bjorn Helgaas <[email protected]> | 2013-10-08 20:20:24 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-12-03 18:13:30 +0000 |
| commit | e756bc5670d0f801ca43dc55b8eacde42a5b818b (patch) | |
| tree | 0dc1d44a9b3c41e48c5e0689255db28f855301d3 /fs/kernfs/inode.c | |
| parent | sysfs, kernfs: remove cross inclusions of internal headers (diff) | |
| download | kernel-e756bc5670d0f801ca43dc55b8eacde42a5b818b.tar.gz kernel-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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/kernfs/inode.c')
0 files changed, 0 insertions, 0 deletions
