summaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorakpm@linux-foundation.org <akpm@linux-foundation.org>2007-06-09 01:42:14 +0200
committerSteven Whitehouse <swhiteho@redhat.com>2007-07-09 09:23:29 +0200
commit037bcbb7564e35aef937c54799550cd27735aac6 (patch)
tree8155f5365683068480b1cb61bfcaa9679e8431b8 /fs/gfs2
parent[GFS2] Recovery for lost unlinked inodes (diff)
downloadlinux-037bcbb7564e35aef937c54799550cd27735aac6.tar.xz
linux-037bcbb7564e35aef937c54799550cd27735aac6.zip
[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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index cacdb0dfe577..366235d6a5b5 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -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;