Unionfs: Check remount options for being NULL
authorAdrian Brunyate <abrunyate@yahoo.com>
Thu, 26 Apr 2007 22:51:16 +0000 (18:51 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Mon, 23 Jul 2007 00:50:26 +0000 (20:50 -0400)
Signed-off-by: Adrian Brunyate <abrunyate@yahoo.com>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
fs/unionfs/super.c

index ee12d030ca1cd4bab2221d3191b1af0681690c0c..02c0cc862089a12394acd4399e11677de6fc30c9 100644 (file)
@@ -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;
 
        /*