dect
/
linux-2.6
Archived
13
0
Fork 0

[GFS2] gfs2_lookupi() uninitialised var fix

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>
This commit is contained in:
akpm@linux-foundation.org 2007-06-08 16:42:14 -07:00 committed by Steven Whitehouse
parent c8cdf47937
commit 037bcbb756
1 changed files with 1 additions and 1 deletions

View File

@ -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;