mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
gfs2: setattr_chown: Add missing initialization
[ Upstream commit 2d8d799061
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1a327862eb
commit
355aec2ed8
|
@ -1929,7 +1929,7 @@ static int setattr_chown(struct inode *inode, struct iattr *attr)
|
||||||
kuid_t ouid, nuid;
|
kuid_t ouid, nuid;
|
||||||
kgid_t ogid, ngid;
|
kgid_t ogid, ngid;
|
||||||
int error;
|
int error;
|
||||||
struct gfs2_alloc_parms ap;
|
struct gfs2_alloc_parms ap = {};
|
||||||
|
|
||||||
ouid = inode->i_uid;
|
ouid = inode->i_uid;
|
||||||
ogid = inode->i_gid;
|
ogid = inode->i_gid;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user