Commit 2d8d7990 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher

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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 0abd1557
......@@ -1927,7 +1927,7 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
kuid_t ouid, nuid;
kgid_t ogid, ngid;
int error;
struct gfs2_alloc_parms ap;
struct gfs2_alloc_parms ap = {};
ouid = inode->i_uid;
ogid = inode->i_gid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment