[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Get device when we find it - fixes refcount leak and is correct.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 2f09b40595eafd845433d1a25366df59eeb4b6b2
# Parent  dda0459e335c9c82996c712419cf3af5273f3eb1
Get device when we find it - fixes refcount leak and is correct.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r dda0459e335c -r 2f09b40595ea 
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
--- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c    Thu Aug 18 
19:04:47 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c    Thu Aug 18 
19:06:51 2005
@@ -242,6 +242,7 @@
 
        if (streq(xendev->nodename, info->nodename)) {
                info->dev = xendev;
+               get_device(dev);
                return 1;
        }
        return 0;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.