GIT: unionfs2-2.6.27.y: Unionfs: Check remount options for being NULL
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:02 EDT 2010
commit c370a07145b3ea20be72cbf12b84d11f965f7a0d
Author: Adrian Brunyate <abrunyate at yahoo.com>
Date: Thu Apr 26 18:51:16 2007 -0400
Unionfs: Check remount options for being NULL
Signed-off-by: Adrian Brunyate <abrunyate at yahoo.com>
Signed-off-by: Josef 'Jeff' Sipek <jsipek at cs.sunysb.edu>
diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index ee12d03..02c0cc8 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;
/*
More information about the unionfs-cvs
mailing list