WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] Revert 341:424f7b772301d501af6952507b

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] Revert 341:424f7b772301d501af6952507b2731e4b8c6da0a
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Dec 2007 08:20:31 -0800
Delivery-date: Fri, 07 Dec 2007 08:22:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1196987920 0
# Node ID 69d413abd6c067d688c693004f46f79d1169f0ce
# Parent  3938ff4b3fc2e84518719bea706a412983155a2a
Revert 341:424f7b772301d501af6952507b2731e4b8c6da0a
xenbus uevent environment handling code is very much alive.
---
 drivers/xen/netback/xenbus.c              |    2 ++
 drivers/xen/xenbus/xenbus_probe_backend.c |    7 +++++++
 2 files changed, 9 insertions(+)

diff -r 3938ff4b3fc2 -r 69d413abd6c0 drivers/xen/netback/xenbus.c
--- a/drivers/xen/netback/xenbus.c      Thu Dec 06 16:02:51 2007 +0000
+++ b/drivers/xen/netback/xenbus.c      Fri Dec 07 00:38:40 2007 +0000
@@ -173,6 +173,8 @@ static int netback_uevent(struct xenbus_
        add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &length,
                       "vif=%s", netif->dev->name);
 
+       envp[i] = NULL;
+
        return 0;
 }
 
diff -r 3938ff4b3fc2 -r 69d413abd6c0 drivers/xen/xenbus/xenbus_probe_backend.c
--- a/drivers/xen/xenbus/xenbus_probe_backend.c Thu Dec 06 16:02:51 2007 +0000
+++ b/drivers/xen/xenbus/xenbus_probe_backend.c Fri Dec 07 00:38:40 2007 +0000
@@ -156,6 +156,13 @@ static int xenbus_uevent_backend(struct 
        add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &length,
                       "XENBUS_BASE_PATH=%s", xenbus_backend.root);
 
+       /* terminate, set to next free slot, shrink available space */
+       envp[i] = NULL;
+       envp = &envp[i];
+       num_envp -= i;
+       buffer = &buffer[length];
+       buffer_size -= length;
+
        if (dev->driver) {
                drv = to_xenbus_driver(dev->driver);
                if (drv && drv->uevent)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] Revert 341:424f7b772301d501af6952507b2731e4b8c6da0a, Xen patchbot-linux-2.6.18-xen <=