ia64/xen-unstable

changeset 8213:1c515c707296

Fix block backend teardown when the device didn't setup completely.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Sat Dec 03 13:36:22 2005 +0100 (2005-12-03)
parents 4146dbea47e1
children d234a8cfc4ca
files linux-2.6-xen-sparse/drivers/xen/blkback/interface.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c	Sat Dec 03 12:21:52 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/interface.c	Sat Dec 03 13:36:22 2005 +0100
     1.3 @@ -123,11 +123,10 @@ static void free_blkif(void *arg)
     1.4  	blkif_t *blkif = (blkif_t *)arg;
     1.5  
     1.6  	/* Already disconnected? */
     1.7 -	if (!blkif->irq)
     1.8 -		return;
     1.9 -
    1.10 -	unbind_from_irqhandler(blkif->irq, blkif);
    1.11 -	blkif->irq = 0;
    1.12 +	if (blkif->irq) {
    1.13 +		unbind_from_irqhandler(blkif->irq, blkif);
    1.14 +		blkif->irq = 0;
    1.15 +	}
    1.16  
    1.17  	vbd_free(&blkif->vbd);
    1.18