Skip to content

Commit

Permalink
[GFS2] gfs2_lookupi() uninitialised var fix
Browse files Browse the repository at this point in the history
fs/gfs2/inode.c: In function 'gfs2_lookupi':
fs/gfs2/inode.c:392: warning: 'error' may be used uninitialized in this function

Looks like a real bug to me.

Cc: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
akpm@linux-foundation.org authored and Steven Whitehouse committed Jul 9, 2007
1 parent c8cdf47 commit 037bcbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
struct super_block *sb = dir->i_sb;
struct gfs2_inode *dip = GFS2_I(dir);
struct gfs2_holder d_gh;
int error;
int error = 0;
struct inode *inode = NULL;
int unlock = 0;

Expand Down

0 comments on commit 037bcbb

Please sign in to comment.