ext4: fix to check return value of freeze_bdev() in ext4_shutdown()
authorChao Yu <chao@kernel.org>
Tue, 6 Jun 2023 07:32:03 +0000 (15:32 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Jun 2023 23:36:44 +0000 (19:36 -0400)
commitc4d13222afd8a64bf11bc7ec68645496ee8b54b9
treefe0bb4acdb3aa8502dc227c8eecbdd9067410a7a
parentf3c1c42e0c40656e73f12ab5dcb1110f83ef8e65
ext4: fix to check return value of freeze_bdev() in ext4_shutdown()

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

Fixes: 783d94854499 ("ext4: add EXT4_IOC_GOINGDOWN ioctl")
Cc: stable@kernel.org
Signed-off-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20230606073203.1310389-1-chao@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ioctl.c