diff options
-rw-r--r-- | fs/hpfs/super.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/hpfs/super.c b/fs/hpfs/super.c index 0642516d36c8..cde044d41f69 100644 --- a/fs/hpfs/super.c +++ b/fs/hpfs/super.c | |||
@@ -451,11 +451,14 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data) | |||
451 | int o; | 451 | int o; |
452 | struct hpfs_sb_info *sbi = hpfs_sb(s); | 452 | struct hpfs_sb_info *sbi = hpfs_sb(s); |
453 | char *new_opts = kstrdup(data, GFP_KERNEL); | 453 | char *new_opts = kstrdup(data, GFP_KERNEL); |
454 | 454 | ||
455 | if (!new_opts) | ||
456 | return -ENOMEM; | ||
457 | |||
455 | sync_filesystem(s); | 458 | sync_filesystem(s); |
456 | 459 | ||
457 | *flags |= MS_NOATIME; | 460 | *flags |= MS_NOATIME; |
458 | 461 | ||
459 | hpfs_lock(s); | 462 | hpfs_lock(s); |
460 | uid = sbi->sb_uid; gid = sbi->sb_gid; | 463 | uid = sbi->sb_uid; gid = sbi->sb_gid; |
461 | umask = 0777 & ~sbi->sb_mode; | 464 | umask = 0777 & ~sbi->sb_mode; |