From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2] libxl/libxl_qmp.c: fix qmp_open Date: Thu, 19 Mar 2015 10:51:27 +0000 Message-ID: <1426762287.610.26.camel@citrix.com> References: <1426500338-36798-1-git-send-email-pramod.devendra@citrix.com> <1426747230-30579-1-git-send-email-pramod.devendra@citrix.com> <20150319100314.GB16267@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YYY3B-0007XN-BA for xen-devel@lists.xenproject.org; Thu, 19 Mar 2015 10:51:41 +0000 In-Reply-To: <20150319100314.GB16267@zion.uk.xensource.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: Wei Liu Cc: xen-devel@lists.xenproject.org, PRAMOD DEVENDRA , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2015-03-19 at 10:03 +0000, Wei Liu wrote: > On Thu, Mar 19, 2015 at 06:40:30AM +0000, PRAMOD DEVENDRA wrote: > > From: Pramod Devendra > > > > Signed-off-by: Pramod Devendra > > CC: Ian Jackson > > CC: Stefano Stabellini > > CC: Ian Campbell > > CC: Wei Liu > > --- > > Changed since v1: > > 1. Make sure sun_path does not overflow. > > 2. Close qmp_fd on error. > > These lines should be in the commit log itself. Putting them here makes > them get discarded when committing. > > You also need to write about your third change, which was requested by > Ian. That is > > 3. Use "goto out" error handling idiom. Please also use a subject more descriptive than "Fix foo", describe the fix somehow, since this combines multiple fixes perhaps "fix error handling in qmp_open" and then describe the various fixes it in the main bit of the message (i.e. the stuff about the path overflow and closing the fd). In general it is easier for everyone to split such changes into two, then you can give each a useful and distinct subject. > > Wei.