All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>,
	Xen-devel <xen-devel@lists.xenproject.org>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH] libxl: set rc to 0 in init_acpi_config in success path
Date: Fri, 16 Dec 2016 10:59:48 -0500	[thread overview]
Message-ID: <bfe6e7bb-612c-3410-3128-b70c7b642eeb@oracle.com> (raw)
In-Reply-To: <1481903493-26803-1-git-send-email-wei.liu2@citrix.com>

On 12/16/2016 10:51 AM, Wei Liu wrote:
> xc_doamin_getinfo returns >=0 in success path, and if there is no vnode
> configured, that rc will be returned to caller, which indicates error.
>
> Fix that by setting rc to 0 in success path.
>
> Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
>
> Please squash this with "libxl: init_acpi_config should return rc
> in exit path" when backporting to 4.8.
> ---
>  tools/libxl/libxl_x86_acpi.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tools/libxl/libxl_x86_acpi.c b/tools/libxl/libxl_x86_acpi.c
> index 6cf0c30..173188f 100644
> --- a/tools/libxl/libxl_x86_acpi.c
> +++ b/tools/libxl/libxl_x86_acpi.c
> @@ -153,6 +153,7 @@ static int init_acpi_config(libxl__gc *gc,
>      config->lapic_id = acpi_lapic_id;
>      config->acpi_revision = 5;
>  
> +    rc = 0;
>  out:
>      return rc;
>  }

You can also drop 'int rc = 0;' definition.

Either way,

Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2016-12-16 15:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-16 15:51 [PATCH] libxl: set rc to 0 in init_acpi_config in success path Wei Liu
2016-12-16 15:59 ` Boris Ostrovsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bfe6e7bb-612c-3410-3128-b70c7b642eeb@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.