From: Ian Jackson Subject: RE: [PATCH] Clear device-model information when destroying an HVM domain with stubdom-v3 Date: Fri, 10 Sep 2010 18:24:07 +0100 Message-ID: <19594.27063.341822.969762@mariner.uk.xensource.com> References: <433DDF91DFB08148BAD3FDB6FDDA314C9F35F3BB63@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <433DDF91DFB08148BAD3FDB6FDDA314C9F35F3BB63@LONPMAILBOX01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Jun Zhu (Intern)" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Jun Zhu (Intern) writes ("RE: [Xen-devel] [PATCH] Clear device-model information when destroying an HVM domain with stubdom-v3"): > Thanks for your suggesion. I use goto out in both wrong condition, > and remove the unnecessory logging. The vim tabs has been converted > to 4 spaces. Thanks. You still need to put { and } on the same line as the else :-). Also, more seriously: > + } else { > + XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "failed to kill Device Model [%d]", > + atoi(pid)); > + goto out; This should set ret to something appropriate. ERROR_FAIL, probably. Ian.