aboutsummaryrefslogtreecommitdiff
path: root/hw/xive.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-04-27 15:59:44 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-04-29 19:55:04 -0500
commit693a204364b0c6d00ae6daa1721fd5c03a4de74e (patch)
tree8ebc1fdde442aecc5e1d99995cc8e453def55c4f /hw/xive.c
parenta22ba4576ad35dccb86622e71442794d09e62bce (diff)
downloadskiboot-693a204364b0c6d00ae6daa1721fd5c03a4de74e.zip
skiboot-693a204364b0c6d00ae6daa1721fd5c03a4de74e.tar.gz
skiboot-693a204364b0c6d00ae6daa1721fd5c03a4de74e.tar.bz2
xive: fix missing unlock in error path
Found with sparse and some added lock annotations. CC: stable # 5.10+ Fixes: de82c2e0e Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/xive.c')
-rw-r--r--hw/xive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xive.c b/hw/xive.c
index 3ce1997..a66f3ff 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -4402,6 +4402,7 @@ static int64_t opal_xive_set_vp_info(uint64_t vp_id,
xive_dbg(x, "Attempt at enabling single escalate"
" on xive rev %d failed\n",
x->rev);
+ unlock(&x->lock);
return OPAL_PARAMETER;
}
rc = xive_setup_silent_gather(vp_id, true);