From: Wei Liu Subject: Re: [PATCH 03/13] xen: fix evtchn_unbind_from_user Date: Fri, 1 Feb 2013 12:33:05 +0000 Message-ID: <1359721985.23229.109.camel@zion.uk.xensource.com> References: <1359643627-29486-1-git-send-email-wei.liu2@citrix.com> <1359643627-29486-4-git-send-email-wei.liu2@citrix.com> <510BA3B4.4010104@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <510BA3B4.4010104@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: "konrad.wilk@oracle.com" , wei.liu2@citrix.com, Ian Campbell , "jbeulich@suse.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2013-02-01 at 11:15 +0000, David Vrabel wrote: > On 31/01/13 14:46, Wei Liu wrote: > > It is possible the port was allocated but the irq was not. Take care of this > > case. > > I think the port should be closed when the evtchn_bind_to_user() fails > otherwise the evtchn driver is leaving the event channel in an > inconsistent state. > Good point! I will move the fix there. Wei.