ext4_common.c: Clean up failure cases in alloc_triple_indirect_block
authorTom Rini <trini@konsulko.com>
Thu, 10 Dec 2015 21:42:21 +0000 (16:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jan 2016 02:05:20 +0000 (21:05 -0500)
commit495c3a1e2242b2c52c8088c52768db5b53592e85
tree50d21640eb68471b4d717605f33662e21175872a
parent02585eb3b5cba572d69bda1ae0864bdc770a0303
ext4_common.c: Clean up failure cases in alloc_triple_indirect_block

As noted by Coverity, when we have an error in
alloc_triple_indirect_block we will leak ti_pbuff_start_addr as it's not
being freed.  Further inspection here shows that we could also leak
ti_cbuff_start_addr in one corner case so free that as well.

Reported-by: Coverity (CID 131205, 131206)
Signed-off-by: Tom Rini <trini@konsulko.com>
fs/ext4/ext4_common.c