]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: dereferencing freed pointers in ocfs2_reflink()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Apr 2015 23:43:54 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:54 +0000 (09:43 +1000)
commit8b1e36cf74855e5a85b292411d0e4aa80b0deee0
tree9fa2fbac8c4a4675adf40f83666a3c66be8aef9c
parentd8898ac7b9aa105e8da1ec711d74d1bae9f52a83
ocfs2: dereferencing freed pointers in ocfs2_reflink()

The code at the "out" label assumes that "default_acl" and "acl" are NULL,
but actually the pointers can be NULL, unitialized, or freed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/refcounttree.c