ia64/xen-unstable

changeset 6401:4ab607ca02c3

Watch may fire before we've allocated the interface structure.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Aug 24 20:43:16 2005 +0000 (2005-08-24)
parents d3c0d85b7ef8
children be5c24f2709c
files linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c	Wed Aug 24 20:29:42 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c	Wed Aug 24 20:43:16 2005 +0000
     1.3 @@ -69,7 +69,7 @@ static void frontend_changed(struct xenb
     1.4  		device_unregister(&be->dev->dev);
     1.5  		return;
     1.6  	}
     1.7 -	if (be->blkif->status == CONNECTED)
     1.8 +	if (be->blkif == NULL || be->blkif->status == CONNECTED)
     1.9  		return;
    1.10  
    1.11  	err = xenbus_gather(be->frontpath, "grant-id", "%lu", &sharedmfn,