From: Lasya Venneti Subject: [PATCH] Fixing coverity bug CID1311511 Date: Sun, 25 Oct 2015 15:32:23 +0530 Message-ID: <1445767344-7780-1-git-send-email-comethalley61@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZqI8o-0005Tg-JS for xen-devel@lists.xenproject.org; Sun, 25 Oct 2015 10:03:06 +0000 Received: by pacfa8 with SMTP id fa8so3358262pac.0 for ; Sun, 25 Oct 2015 03:03:03 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, george.dunlap@citrix.com, dario.faggioli@citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com, stefano.stebellini@eu.citrix.com, lars.kurth@citrix.com, comethalley61@gmail.com List-Id: xen-devel@lists.xenproject.org *This is part of my 'bite sized contribution' to Xen for the OutreachY program. *The change handles the return value of the function xc_dom_allocate, if the function returns NULL the function returns -1. It would not be useful to jump to err as err would check !dom for NULL. *Changes have been made in the build function in init-xenstore-domain.c *I have taken these discussions for reference: https://www.choon.net/forum/read.php?22,3805351,3805351 Signed-off: Lasya Venneti