We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c1c42 commit c4d1322Copy full SHA for c4d1322
fs/ext4/ioctl.c
@@ -797,6 +797,7 @@ static int ext4_shutdown(struct super_block *sb, unsigned long arg)
797
{
798
struct ext4_sb_info *sbi = EXT4_SB(sb);
799
__u32 flags;
800
+ int ret;
801
802
if (!capable(CAP_SYS_ADMIN))
803
return -EPERM;
@@ -815,7 +816,9 @@ static int ext4_shutdown(struct super_block *sb, unsigned long arg)
815
816
817
switch (flags) {
818
case EXT4_GOING_FLAGS_DEFAULT:
- freeze_bdev(sb->s_bdev);
819
+ ret = freeze_bdev(sb->s_bdev);
820
+ if (ret)
821
+ return ret;
822
set_bit(EXT4_FLAGS_SHUTDOWN, &sbi->s_ext4_flags);
823
thaw_bdev(sb->s_bdev);
824
break;
0 commit comments