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] Fix a Linux bug in the driver core in regards to the bin

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix a Linux bug in the driver core in regards to the bind sysfs driver
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Mar 2006 12:16:09 +0000
Delivery-date: Thu, 23 Mar 2006 12:17:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 2c77d26871f7463dd1ebb347cd615f18045ed8da
# Parent  05daa762a8e2f189691f1fe5776b023bddd371d8
Fix a Linux bug in the driver core in regards to the bind sysfs driver
attribute. I've submitted this to lkml, but it should be included in
Xen now for people who will use the pciback late binding capability.

Signed-off-by: Ryan Wilson <hap9@xxxxxxxxxxxxxx>

diff -r 05daa762a8e2 -r 2c77d26871f7 patches/linux-2.6.16/device_bind.patch
--- /dev/null   Thu Mar 23 09:57:48 2006
+++ b/patches/linux-2.6.16/device_bind.patch    Thu Mar 23 09:58:39 2006
@@ -0,0 +1,14 @@
+--- linux-2.6.16/drivers/base/bus.c    2006-03-16 10:50:20.000000000 -0500
++++ linux-2.6.16/drivers/base/bus.c    2006-03-16 11:02:08.000000000 -0500
+@@ -188,6 +188,11 @@ static ssize_t driver_bind(struct device
+               up(&dev->sem);
+               if (dev->parent)
+                       up(&dev->parent->sem);
++
++              if (err > 0)            /* success */
++                      err = count;
++              else if (err == 0)      /* driver didn't accept device */
++                      err = -ENODEV;
+       }
+       put_device(dev);
+       put_bus(bus);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix a Linux bug in the driver core in regards to the bind sysfs driver, Xen patchbot -unstable <=