btrfs: sysfs: normalize the error handling branch in btrfs_init_sysfs()
stable inclusion from stable-v5.10.157 commit c86c1a7037cd271dbbb315c3add2dcb589a5a2c8 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7MU59 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c86c1a7037cd271dbbb315c3add2dcb589a5a2c8 -------------------------------- commit ffdbb44f upstream. Although kset_unregister() can eventually remove all attribute files, explicitly rolling back with the matching function makes the code logic look clearer. CC: stable@vger.kernel.org # 5.4+ Reviewed-by:Qu Wenruo <wqu@suse.com> Signed-off-by:
Zhen Lei <thunder.leizhen@huawei.com> Reviewed-by:
David Sterba <dsterba@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment