ia64/xen-unstable

changeset 6261:8d69cb2d4a88

Don't free subtype field unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 18 19:07:29 2005 +0000 (2005-08-18)
parents 2f09b40595ea
children b2f2c08e1222
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:06:51 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Thu Aug 18 19:07:29 2005 +0000
     1.3 @@ -262,7 +262,8 @@ static void xenbus_release_device(struct
     1.4  	if (dev) {
     1.5  		struct xenbus_device *xendev = to_xenbus_device(dev);
     1.6  
     1.7 -		kfree(xendev->subtype);
     1.8 +		if (xendev->subtype)
     1.9 +			kfree(xendev->subtype);
    1.10  		kfree(xendev);
    1.11  	}
    1.12  }