]> git.baikalelectronics.ru Git - kernel.git/commit
staging: erofs: set sb->s_root to NULL when failing from __getname()
authorChengguang Xu <cgxu519@gmail.com>
Mon, 6 May 2019 11:01:02 +0000 (19:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 07:18:18 +0000 (09:18 +0200)
commitf2dcb8841e6b155da098edae09125859ef7e853d
tree195ada5679b5809f0a6c65fd7eab2bafa58ecb8f
parent083a685c2ee035dd6c47242ea2de6d9eed3bf929
staging: erofs: set sb->s_root to NULL when failing from __getname()

Set sb->s_root to NULL when failing from __getname(),
so that we can avoid double dput and unnecessary operations
in generic_shutdown_super().

Signed-off-by: Chengguang Xu <cgxu519@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/super.c