Skip to content

Commit

Permalink
xive: fix missing unlock in error path
Browse files Browse the repository at this point in the history
Found with sparse and some added lock annotations.

CC: stable # 5.10+
Fixes: de82c2e
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Apr 30, 2018
1 parent a22ba45 commit 693a204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/xive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 693a204

Please sign in to comment.