Skip to content

Commit

Permalink
[GFS2] The case of the missing asterisk
Browse files Browse the repository at this point in the history
A dereference was forgotten. This adds it back correctly.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Mar 31, 2008
1 parent b45e41d commit c85a665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/bmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static int lookup_metapath(struct inode *inode, struct metapath *mp,

for (x = 0; x < end_of_metadata; x++) {
lookup_block(ip, x, mp, create, new, dblock);
if (!dblock)
if (!*dblock)
return 0;

ret = gfs2_meta_indirect_buffer(ip, x+1, *dblock, *new, &mp->mp_bh[x+1]);
Expand Down

0 comments on commit c85a665

Please sign in to comment.