Commit b708b346 authored by Chao Yu's avatar Chao Yu Committed by sanglipeng
Browse files

ext4: fix to check return value of freeze_bdev() in ext4_shutdown()

stable inclusion
from stable-v5.10.190
commit ed3d841f2fc2c39048b6aeb5c58e59e227b304e9
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ed3d841f2fc2c39048b6aeb5c58e59e227b304e9



--------------------------------

[ Upstream commit c4d13222 ]

freeze_bdev() can fail due to a lot of reasons, it needs to check its
reason before later process.

Fixes: 783d9485 ("ext4: add EXT4_IOC_GOINGDOWN ioctl")
Cc: stable@kernel.org
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20230606073203.1310389-1-chao@kernel.org


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 56c06d7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment