aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
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