From dcbf18c1f0e16111d5c86e845f37e8c2cad4f9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Wed, 21 Mar 2018 18:12:37 +0100 Subject: xive: fix opal_xive_set_vp_info() error path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In case of error, opal_xive_set_vp_info() will return without unlocking the xive object. This is most certainly a typo. Signed-off-by: Cédric Le Goater Acked-by: Benjamin Herrenschmidt Signed-off-by: Stewart Smith --- hw/xive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/xive.c b/hw/xive.c index 998705e..196c070 100644 --- a/hw/xive.c +++ b/hw/xive.c @@ -4421,8 +4421,8 @@ static int64_t opal_xive_set_vp_info(uint64_t vp_id, if (!(flags & OPAL_XIVE_VP_ENABLED)) xive_vpc_scrub_clean(x, blk, idx); - unlock(&x->lock); bail: + unlock(&x->lock); return rc; } -- cgit v1.1