aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorJosef Whiter <jwhiter@redhat.com>2007-03-07 17:09:10 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2007-05-01 04:10:32 -0400
commit5c7342d894973636f03270673e1fb7b908a421a8 (patch)
treee6c4650417f120e3e0780e31e0e46b97d5d1e458 /fs/gfs2/glock.c
parent7c52b166c588c98cf3d2b2e7e6a0468a98e84d0d (diff)
[GFS2] fix bz 231369, gfs2 will oops if you specify an invalid mount option
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@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 9f203ef4da61..a3a24f2e99d2 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -2217,7 +2217,7 @@ int gfs2_create_debugfs_file(struct gfs2_sbd *sdp)
2217 2217
2218void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp) 2218void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp)
2219{ 2219{
2220 if (sdp->debugfs_dentry) 2220 if (sdp && sdp->debugfs_dentry)
2221 debugfs_remove(sdp->debugfs_dentry); 2221 debugfs_remove(sdp->debugfs_dentry);
2222} 2222}
2223 2223