Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09ca7fcd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "FROMLIST: 9p: fix a potential acl leak"

parents 814ac6e6 1413a742
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -321,6 +321,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name,
		name = POSIX_ACL_XATTR_ACCESS;
		if (acl) {
			struct iattr iattr;
			struct posix_acl *old_acl = acl;

			retval = posix_acl_update_mode(inode,
				&iattr.ia_mode, &acl);
@@ -332,6 +333,7 @@ static int v9fs_xattr_set_acl(struct dentry *dentry, const char *name,
				 * by the mode bits. So don't
				 * update ACL.
				 */
				posix_acl_release(old_acl);
				value = NULL;
				size = 0;
			}