From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Date: Sat, 20 Jun 2009 12:50:07 +0000 (+0900)
Subject: fat: Fix the removal of opts->fs_dmask
X-Git-Tag: firefly_0821_release~13692^2
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3e107603aecf886e1e5bda9dacbd9796eb2a2171;p=firefly-linux-kernel-4.4.55.git

fat: Fix the removal of opts->fs_dmask

(ce3b0f8d5c2203301fc87f3aaaed73e5819e2a48: New helper - current_umask())
is removing the opts->fs_dmask, probably it's a cut-and-paste
miss or something.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 304b411cb8bc..8970d8c49bb0 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -966,7 +966,7 @@ static int parse_options(char *options, int is_vfat, int silent, int *debug,
 
 	opts->fs_uid = current_uid();
 	opts->fs_gid = current_gid();
-	opts->fs_fmask = current_umask();
+	opts->fs_fmask = opts->fs_dmask = current_umask();
 	opts->allow_utime = -1;
 	opts->codepage = fat_default_codepage;
 	opts->iocharset = fat_default_iocharset;