[JFFS2][XATTR] Fix memory leak in POSIX-ACL support
authorKaiGai Kohei <kaigai@ak.jp.nec.com>
Sun, 2 Jul 2006 14:13:46 +0000 (15:13 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 2 Jul 2006 14:13:46 +0000 (15:13 +0100)
commitc7afb0f97700e73109564f83c35bfeeb14cb653b
treebd1c0f0e3b095e0dea15d569967a50703e05586e
parentc05d52c748da10a3f27f6e638875514153776b15
[JFFS2][XATTR] Fix memory leak in POSIX-ACL support

jffs2_clear_acl() which releases acl caches allocated by kmalloc()
was defined but it was never called. Thus, we faced to the risk
of memory leaking.

This patch plugs jffs2_clear_acl() into jffs2_do_clear_inode().
It ensures to release acl cache when inode is cleared.

Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/acl.c
fs/jffs2/acl.h
fs/jffs2/readinode.c