From: Wei Liu Date: Wed, 27 Sep 2017 11:46:21 +0000 (+0100) Subject: xen/credit2: add missing unlock X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1328 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1fafc4b23c063248dd90c6b804c73a370af63dfe;p=xen.git xen/credit2: add missing unlock Coverity-ID: 1418531 Signed-off-by: Wei Liu Reviewed-by: Dario Faggioli --- diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index d33c881c3d..18f39cafe4 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -2831,6 +2831,7 @@ csched2_dom_cntl( if ( op->u.credit2.cap > 100 * sdom->nr_vcpus ) { rc = -EINVAL; + write_unlock_irqrestore(&prv->lock, flags); break; }