git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lsm: fix smack_inode_removexattr and xattr_getsecurity memleak
[pandora-kernel.git]
/
fs
/
xattr.c
diff --git
a/fs/xattr.c
b/fs/xattr.c
index
67583de
..
f91e3c1
100644
(file)
--- a/
fs/xattr.c
+++ b/
fs/xattr.c
@@
-161,7
+161,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;
}