Commit 34eaae39 authored by Denis Cheng's avatar Denis Cheng Committed by Steven Whitehouse

[GFS2] fixed a NULL pointer assignment BUG

Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 0fd53554
...@@ -292,8 +292,9 @@ static int init_sb(struct gfs2_sbd *sdp, int silent, int undo) ...@@ -292,8 +292,9 @@ static int init_sb(struct gfs2_sbd *sdp, int silent, int undo)
fs_err(sdp, "can't get root dentry\n"); fs_err(sdp, "can't get root dentry\n");
error = -ENOMEM; error = -ENOMEM;
iput(inode); iput(inode);
} } else
sb->s_root->d_op = &gfs2_dops; sb->s_root->d_op = &gfs2_dops;
out: out:
gfs2_glock_dq_uninit(&sb_gh); gfs2_glock_dq_uninit(&sb_gh);
return error; return error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment