]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: stop overwrite the errcode in ext4_setup_super
authoryangerkun <yangerkun@huawei.com>
Mon, 1 Jun 2020 07:34:04 +0000 (15:34 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Jun 2020 14:59:38 +0000 (10:59 -0400)
commit9a11778f4aea4be8863c8b2dc95b8f0f72f102a6
tree59e1ae301608839f2b9083abf22b1bf662d5eac0
parentacabe67530fb253614a734d39de6a9d71d139281
ext4: stop overwrite the errcode in ext4_setup_super

Now the errcode from ext4_commit_super will overwrite EROFS exists in
ext4_setup_super. Actually, no need to call ext4_commit_super since we
will return EROFS. Fix it by goto done directly.

Fixes: 8e1a38f4548d ("ext4: handle errors on ext4_commit_super")
Signed-off-by: yangerkun <yangerkun@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200601073404.3712492-1-yangerkun@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c