ia64/xen-unstable

annotate patches/linux-2.6.16.13/device_bind.patch @ 11154:bb37d167c82e

[XEND] xc_save/xc_restore open the libxc interface independently
of their parent. This is required now that the interface fd is
marked for close-on-exec.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Aug 15 19:04:43 2006 +0100 (2006-08-15)
parents ad5b833122a8
children
rev   line source
cl349@9941 1 diff -pruN ../pristine-linux-2.6.16.13/drivers/base/bus.c ./drivers/base/bus.c
cl349@9941 2 --- ../pristine-linux-2.6.16.13/drivers/base/bus.c 2006-05-02 22:38:44.000000000 +0100
cl349@9941 3 +++ ./drivers/base/bus.c 2006-05-04 17:41:30.000000000 +0100
kaf24@9419 4 @@ -188,6 +188,11 @@ static ssize_t driver_bind(struct device
kaf24@9419 5 up(&dev->sem);
kaf24@9419 6 if (dev->parent)
kaf24@9419 7 up(&dev->parent->sem);
kaf24@9419 8 +
kaf24@9419 9 + if (err > 0) /* success */
kaf24@9419 10 + err = count;
kaf24@9419 11 + else if (err == 0) /* driver didn't accept device */
kaf24@9419 12 + err = -ENODEV;
kaf24@9419 13 }
kaf24@9419 14 put_device(dev);
kaf24@9419 15 put_bus(bus);