fsi: master-ast-cf: Fix memory leak
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 25 Jul 2018 13:38:32 +0000 (08:38 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 25 Jul 2018 23:56:17 +0000 (09:56 +1000)
commit502defbb476bca222ddb5a78f2cc19c12c4e42f3
treebca28ddb1ee758fa00fbe9aa828e6768ce71611f
parent375cac70100b58ce8f4737ec530bfbdcb3086964
fsi: master-ast-cf: Fix memory leak

In case memory resources for *fw* were allocated, release them
before return.

Addresses-Coverity-ID: 1472044 ("Resource leak")
Fixes: 6a794a27daca ("fsi: master-ast-cf: Add new FSI master using Aspeed ColdFire")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/fsi/fsi-master-ast-cf.c