ia64/xen-unstable

changeset 6260:2f09b40595ea

Get device when we find it - fixes refcount leak and is correct.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 18 19:06:51 2005 +0000 (2005-08-18)
parents dda0459e335c
children 8d69cb2d4a88
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Thu Aug 18 19:04:47 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Thu Aug 18 19:06:51 2005 +0000
     1.3 @@ -242,6 +242,7 @@ static int cmp_dev(struct device *dev, v
     1.4  
     1.5  	if (streq(xendev->nodename, info->nodename)) {
     1.6  		info->dev = xendev;
     1.7 +		get_device(dev);
     1.8  		return 1;
     1.9  	}
    1.10  	return 0;