|
@@ -5101,6 +5101,9 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
|
|
#endif
|
|
#endif
|
|
char *orig_data = kstrdup(data, GFP_KERNEL);
|
|
char *orig_data = kstrdup(data, GFP_KERNEL);
|
|
|
|
|
|
|
|
+ if (data && !orig_data)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
+
|
|
/* Store the original options */
|
|
/* Store the original options */
|
|
old_sb_flags = sb->s_flags;
|
|
old_sb_flags = sb->s_flags;
|
|
old_opts.s_mount_opt = sbi->s_mount_opt;
|
|
old_opts.s_mount_opt = sbi->s_mount_opt;
|