mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]>
This commit is contained in:
1 parent
0abd1557e2
commit
2d8d799061
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user