From: Adrian Brunyate Date: Thu, 26 Apr 2007 22:51:16 +0000 (-0400) Subject: Unionfs: Check remount options for being NULL X-Git-Tag: unionfs-2.1.1~172 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=346419aa6dc059e95f1c320218ad6113f98385ec;p=unionfs-2.6.26.y.git Unionfs: Check remount options for being NULL Signed-off-by: Adrian Brunyate Signed-off-by: Josef 'Jeff' Sipek --- diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index ee12d030ca1..02c0cc86208 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -442,7 +442,7 @@ static int unionfs_remount_fs(struct super_block *sb, int *flags, * the union to a "ro" or "rw" and the VFS took care of it. So * nothing to do and we're done. */ - if (options[0] == '\0') + if (!options || options[0] == '\0') goto out_error; /*