ia64/xen-unstable

changeset 953:279e288dc4f0

bitkeeper revision 1.609 (3fba2fe9Gbos3ZJ3KSgSz7hSX64wVg)

xen_vbd.c:
bug fix
author smh22@labyrinth.cl.cam.ac.uk
date Tue Nov 18 14:42:49 2003 +0000 (2003-11-18)
parents 6c5d838ecf1e
children 5a9d5824dcb7
files xen/drivers/block/xen_vbd.c
line diff
     1.1 --- a/xen/drivers/block/xen_vbd.c	Mon Nov 17 18:37:48 2003 +0000
     1.2 +++ b/xen/drivers/block/xen_vbd.c	Tue Nov 18 14:42:49 2003 +0000
     1.3 @@ -31,7 +31,7 @@ extern int scsi_probe_devices(xen_disk_i
     1.4  #endif
     1.5  
     1.6  /* XXX SMH: crappy 'hash function' .. fix when care. */
     1.7 -#define HSH(_x) (((_x) >> 6) & (VBD_HTAB_SZ - 1))
     1.8 +#define HSH(_x) ((_x) & (VBD_HTAB_SZ - 1))
     1.9  
    1.10  /* 
    1.11  ** Create a new VBD; all this involves is adding an entry to the domain's
    1.12 @@ -73,7 +73,7 @@ long vbd_create(vbd_create_t *create)
    1.13      new_vbd->vdevice = create->vdevice; 
    1.14      new_vbd->mode    = create->mode; 
    1.15      new_vbd->extents = (xen_extent_le_t *)NULL; 
    1.16 -    new_vbd->next    = (vbd_t *)NULL; 
    1.17 +    new_vbd->next    = *pv; 
    1.18  
    1.19      *pv = new_vbd;
    1.20