aboutsummaryrefslogtreecommitdiff
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:22 -0500
commit0fcedc753e6b56da85fa33033682748f70715464 (patch)
tree723523ff7395b1adf6210e7d55eb7b752d0ae08a
parent28efc33298628ccb353f9ef9f5c30f5ce0974bc8 (diff)
downloadskiboot-0fcedc753e6b56da85fa33033682748f70715464.zip
skiboot-0fcedc753e6b56da85fa33033682748f70715464.tar.gz
skiboot-0fcedc753e6b56da85fa33033682748f70715464.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> (cherry picked from commit 693a204364b0c6d00ae6daa1721fd5c03a4de74e) Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--hw/xive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xive.c b/hw/xive.c
index a405134..8ec2ab4 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);