Skip to content

Commit 2d8d799

Browse files
author
Andreas Gruenbacher
committed
gfs2: setattr_chown: Add missing initialization
Add a missing initialization of variable ap in setattr_chown(). Without, chown() may be able to bypass quotas. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 0abd155 commit 2d8d799

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
19271927
kuid_t ouid, nuid;
19281928
kgid_t ogid, ngid;
19291929
int error;
1930-
struct gfs2_alloc_parms ap;
1930+
struct gfs2_alloc_parms ap = {};
19311931

19321932
ouid = inode->i_uid;
19331933
ogid = inode->i_gid;

0 commit comments

Comments
 (0)