aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2005-02-01 21:55:39 +0000
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>2005-02-01 21:55:39 +0000
commitbae735390fe42f0c59dbfbea4cfe9349e074cee2 (patch)
tree864ed1f4dbd182d9ceabeb913694f9bd007c3a2b
parent4baf6e1ed5aa662f25307b63f0444e2c4a1bbda7 (diff)
downloadxen-bae735390fe42f0c59dbfbea4cfe9349e074cee2.tar.gz
xen-bae735390fe42f0c59dbfbea4cfe9349e074cee2.tar.bz2
xen-bae735390fe42f0c59dbfbea4cfe9349e074cee2.zip
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
-rw-r--r--linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c b/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c
index 00be870d91..25bfa59e79 100644
--- a/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c
+++ b/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c
@@ -317,7 +317,7 @@ static int xlvbd_init_device(vdisk_t *xd)
down(&bd->bd_sem);
gd = xlvbd_get_gendisk(mi, minor, xd);
- if (mi == NULL) {
+ if (gd == NULL) {
err = -EPERM;
goto out;
}