]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: free memory allocated by inode_init_security
authorTiger Yang <tiger.yang@oracle.com>
Thu, 2 Jun 2011 06:04:36 +0000 (14:04 +0800)
committerJoel Becker <jlbec@evilplan.org>
Mon, 22 Aug 2011 04:25:40 +0000 (21:25 -0700)
commitd27fb6a99c41428464a60a4a76839c0c31366faf
tree3dead288678603332fcf299a0a1e47ebd99609f4
parent99b1bb61b225c3eb4d3b196d4f1d041695b19a7e
ocfs2: free memory allocated by inode_init_security

The LSM security_inode_init_security() hook allocates memory
for xattr name and value, expecting the caller to release
the memory afterwards.

reported-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/xattr.c