mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-09-22 12:42:50 +00:00
[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>
This commit is contained in:
parent
7c52b166c5
commit
5c7342d894
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue