Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1adffbae authored by OGAWA Hirofumi's avatar OGAWA Hirofumi
Browse files

fat: Fix corrupt inode flags when remove ATTR_SYS flag



We are clearly missing '~' in fat_ioctl_set_attributes().

Cc: <stable@kernel.org>
Reported-by: default avatarDmitry Dmitriev <dimondmm@yandex.ru>
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
parent 55922c9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ static int fat_ioctl_set_attributes(struct file *file, u32 __user *user_attr)
		if (attr & ATTR_SYS)
			inode->i_flags |= S_IMMUTABLE;
		else
			inode->i_flags &= S_IMMUTABLE;
			inode->i_flags &= ~S_IMMUTABLE;
	}

	fat_save_attrs(inode, attr);