VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Casey Schaufler <casey@schaufler-ca.com> 2017-09-19 09:39:08 -0700 committer: James Morris <james.l.morris@oracle.com> 2017-10-04 18:03:15 +1100 commit: 57e7ba04d422c3d41c8426380303ec9b7533ded9 parent: d81fa669e3de7eb8a631d7d95dac5fbcb2bf9d4e
Commit Summary:
lsm: fix smack_inode_removexattr and xattr_getsecurity memleak
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/xattr.c b/fs/xattr.c
index 4424f7fecf14..61cd28ba25f3 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -250,7 +250,7 @@ xattr_getsecurity(struct inode *inode, const char *name, void *value,
 	}
 	memcpy(value, buffer, len);
 out:
-	security_release_secctx(buffer, len);
+	kfree(buffer);
 out_noalloc:
 	return len;
 }