xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Aravindh Puthiyaparambil <aravindh@virtuata.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] tests: xen-access: minor bug fixes
Date: Fri, 6 May 2011 01:09:44 -0700	[thread overview]
Message-ID: <BANLkTikbw7VFU9v88WePRYspLzOHDKVEOA@mail.gmail.com> (raw)
In-Reply-To: <1304668738.26692.109.camel@zakaz.uk.xensource.com>


[-- Attachment #1.1: Type: text/plain, Size: 680 bytes --]

On Fri, May 6, 2011 at 12:58 AM, Ian Campbell <Ian.Campbell@citrix.com>wrote:

> On Thu, 2011-05-05 at 20:39 +0100, Aravindh Puthiyaparambil wrote:
> > Can this patch be applied to both xen-unstable and xen-4.1-testing so
> > that it makes it into xen-4.1.1?
> [...]
> > Fix a couple of minor bugs in xen-access test program.
>
> It's always useful to describe _what_ bugs in a changelog message.
>
> > Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>
>
>
>
>
Sorry about that. Here is the explanation.
Thanks,
Aravindh

Fix -m option handling.
Fix a segfault that was occurring during program exit.

Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>

[-- Attachment #1.2: Type: text/html, Size: 1246 bytes --]

[-- Attachment #2: xen-access-bugfixes.patch --]
[-- Type: application/octet-stream, Size: 700 bytes --]

diff -r 6a2089f00dc7 tools/tests/xen-access/xen-access.c
--- a/tools/tests/xen-access/xen-access.c	Fri Mar 25 10:22:10 2011 +0000
+++ b/tools/tests/xen-access/xen-access.c	Thu May 05 12:35:38 2011 -0700
@@ -482,9 +482,6 @@
 
     if ( argc == 3 && argv[0][0] == '-' )
     {
-        argv++;
-        argc--;
-
         if ( !strcmp(argv[0], "-m") )
             required = 1;
         else
@@ -492,6 +489,8 @@
             usage(progname);
             return -1;
         }
+        argv++;
+        argc--;
     }
 
     if ( argc != 2 )
@@ -651,8 +650,6 @@
     if ( rc == 0 )
         rc = rc1;
 
-    xc_interface_close(xch);
-
     DPRINTF("xenaccess exit code %d\n", rc);
     return rc;
 }


[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

      reply	other threads:[~2011-05-06  8:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05 19:39 [PATCH] tests: xen-access: minor bug fixes Aravindh Puthiyaparambil
2011-05-06  7:58 ` Ian Campbell
2011-05-06  8:09   ` Aravindh Puthiyaparambil [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=BANLkTikbw7VFU9v88WePRYspLzOHDKVEOA@mail.gmail.com \
    --to=aravindh@virtuata.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).