debuggers.hg
changeset 3636:f86bdb0a8573
bitkeeper revision 1.1159.223.55 (41fffadb9KX8y2tjTwUVGZRrZQdJ2g)
Fix incorrect result-check in xlvbd_init_device
Signed-off-by: Jody Belka <knew-xen@pimb.org>
Signed-off-by: ian.pratt@cl.cam.ac.uk
Fix incorrect result-check in xlvbd_init_device
Signed-off-by: Jody Belka <knew-xen@pimb.org>
Signed-off-by: ian.pratt@cl.cam.ac.uk
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Tue Feb 01 21:55:39 2005 +0000 (2005-02-01) |
parents | a5f1a6abfc46 |
children | 0ebbb4b2bbdc |
files | linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c |
line diff
1.1 --- a/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c Tue Feb 01 09:21:09 2005 +0000 1.2 +++ b/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c Tue Feb 01 21:55:39 2005 +0000 1.3 @@ -317,7 +317,7 @@ static int xlvbd_init_device(vdisk_t *xd 1.4 down(&bd->bd_sem); 1.5 1.6 gd = xlvbd_get_gendisk(mi, minor, xd); 1.7 - if (mi == NULL) { 1.8 + if (gd == NULL) { 1.9 err = -EPERM; 1.10 goto out; 1.11 }