spapr_vscsi: Error handling fixes
commita4d8e8daee324e230b0155915f562743f4fff5d8
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 18 Jun 2012 20:02:38 +0000 (18 20:02 +0000)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:45 +0000 (24 01:04 +0200)
tree4985a18dea502942518e9ef236c1e8c2b636455a
parent5af9873d301cf5affec57e2f93650e8700f8251a
spapr_vscsi: Error handling fixes

We were incorrectly g_free'ing an object that isn't allocated
in one error path and failed to release it completely in another

This fixes qemu crashes with some cases of IO errors.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_vscsi.c