summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorAnand Jain <Anand.Jain@oracle.com>2015-03-10 06:38:19 +0800
committerDavid Sterba <dsterba@suse.cz>2015-05-27 12:27:18 +0200
commit248d200df34f3e44a4140f32dfc7428c52615332 (patch)
tree1f84869e27d96d1ef0999e47d47b9d22f9e983c2 /fs/binfmt_flat.c
parentba155e2d21f6bf05de86a78dbe5bfd8757604a65 (diff)
downloadlinux-stable-248d200df34f3e44a4140f32dfc7428c52615332.tar.gz
linux-stable-248d200df34f3e44a4140f32dfc7428c52615332.tar.bz2
linux-stable-248d200df34f3e44a4140f32dfc7428c52615332.zip
Btrfs: sysfs: fix, btrfs_release_super_kobj() should to clean up the kobject data
The following test case fails indicating that, thread tried to init an initialized object. kernel: [232104.016513] kobject (ffff880006c1c980): tried to init an initialized object, something is seriously wrong. btrfs_sysfs_remove_one() self test code: open_tree() { :: ret = btrfs_sysfs_add_one(fs_info); if (ret) { pr_err("BTRFS: failed to init sysfs interface: %d\n", ret); goto fail_block_groups; } + btrfs_sysfs_remove_one(fs_info); + ret = btrfs_sysfs_add_one(fs_info); + if (ret) { + pr_err("BTRFS: failed to init sysfs interface: %d\n", ret); + goto fail_block_groups; + } cleaning up the unregistered kobject fixes this. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions