Skip to content

Commit

Permalink
[GFS2] fixed a NULL pointer assignment BUG
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Denis Cheng authored and Steven Whitehouse committed Oct 10, 2007
1 parent 0fd5355 commit 34eaae3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/gfs2/ops_fstype.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
error = -ENOMEM;
iput(inode);
}
sb->s_root->d_op = &gfs2_dops;
} else
sb->s_root->d_op = &gfs2_dops;

out:
gfs2_glock_dq_uninit(&sb_gh);
return error;
Expand Down

0 comments on commit 34eaae3

Please sign in to comment.