diff options
author | Andreas Gruenbacher | 2023-10-21 20:51:13 +0200 |
---|---|---|
committer | Andreas Gruenbacher | 2023-10-23 11:47:13 +0200 |
commit | 2d8d7990619878a848b1d916c2f936d3012ee17d (patch) | |
tree | b660fdbb484dd8b4a7d581323e30c232e2cd8278 /fs/gfs2 | |
parent | 0abd1557e21c617bd13fc18f7725fc6363c05913 (diff) |
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 697f95047033..ee5b07d296f7 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -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; |