GFS2: Fix uninitialized VFS inode in gfs2_create_inode
authorAbhi Das <adas@redhat.com>
Mon, 31 Mar 2014 15:33:17 +0000 (10:33 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2014 15:41:39 +0000 (16:41 +0100)
commit059788039f1e6343f34f46d202f8d9f2158c2783
treef122d85bf11e42c4b1babb1b720df747386ba95d
parente9fb7c73a43e0551e689b7024f1581af5fa36a03
GFS2: Fix uninitialized VFS inode in gfs2_create_inode

When gfs2_create_inode() fails due to quota violation, the VFS
inode is not completely uninitialized. This can cause a list
corruption error.

This patch correctly uninitializes the VFS inode when a quota
violation occurs in the gfs2_create_inode codepath.

Resolves: rhbz#1059808
Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/super.c