[Cluster-devel] [GFS2] fix bz 231369, gfs2 will oops if you specify an invalid mount option

Josef Whiter jwhiter at redhat.com
Wed Mar 7 22:09:10 UTC 2007


Hello,

If you specify an invalid mount option when trying to mount a gfs2 filesystem,
gfs2 will oops.  The attached patch resolves this problem.

Signed-off-by: Josef Whiter <jwhiter at redhat.com>


--- gfs2-2.6-nmw/fs/gfs2/glock.c.josef	2007-03-07 17:05:39.000000000 -0500
+++ gfs2-2.6-nmw/fs/gfs2/glock.c	2007-03-07 17:06:13.000000000 -0500
@@ -2217,7 +2217,7 @@ int gfs2_create_debugfs_file(struct gfs2
 
 void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp)
 {
-	if (sdp->debugfs_dentry)
+	if (sdp && sdp->debugfs_dentry)
 		debugfs_remove(sdp->debugfs_dentry);
 }
 




More information about the Cluster-devel mailing list