Skip to content

Commit

Permalink
[GFS2] fix bz 231369, gfs2 will oops if you specify an invalid mount …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Josef Whiter authored and Steven Whitehouse committed May 1, 2007
1 parent 7c52b16 commit 5c7342d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ int gfs2_create_debugfs_file(struct gfs2_sbd *sdp)

void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp)
{
if (sdp->debugfs_dentry)
if (sdp && sdp->debugfs_dentry)
debugfs_remove(sdp->debugfs_dentry);
}

Expand Down

0 comments on commit 5c7342d

Please sign in to comment.