From: Wei Liu Subject: Re: [PATCH 2/2] libxc: fix xc_dom_load_elf_symtab Date: Wed, 17 Jun 2015 10:56:24 +0100 Message-ID: <20150617095624.GF1813@zion.uk.xensource.com> References: <1434038720-39031-1-git-send-email-roger.pau@citrix.com> <1434038720-39031-3-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z5A57-0006nR-T7 for xen-devel@lists.xenproject.org; Wed, 17 Jun 2015 09:56:29 +0000 Content-Disposition: inline In-Reply-To: <1434038720-39031-3-git-send-email-roger.pau@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: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Wei Liu , Ian Jackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, Jun 11, 2015 at 06:05:20PM +0200, Roger Pau Monne wrote: > xc_dom_load_elf_symtab was incorrectly trying to perform the same > calculations already done in elf_parse_bsdsyms when load =3D=3D 0 is used. > Instead of trying to repeat the calculations, just trust what > elf_parse_bsdsyms has already accounted for. > = > This also simplifies the code by allowing the non-load case to return > earlier. > = > Signed-off-by: Roger Pau Monn=E9 > Cc: Ian Jackson > Cc: Stefano Stabellini > Cc: Ian Campbell > Cc: Wei Liu Acked-by: Wei Liu