bitkeeper revision 1.683 (400c33c2I0UquUQa-QChvyqrE7-GRA)

xen_vbd.c:
  Fix loop bounds when setting vbd extents.
This commit is contained in:
kaf24@scramble.cl.cam.ac.uk committed 2004-01-19 19:45:06 +00:00
1 parent 2fa58fe96f
commit dc230ec065
1 file changed
+1 -1
+1 -1
View File
@@ -288,7 +288,7 @@ long vbd_setextents(vbd_setextents_t *setextents)
/* Construct the new extent list. */
new_extents = NULL;
for ( i = setextents->nr_extents; i > 0; i-- )
for ( i = setextents->nr_extents - 1; i >= 0; i-- )
{
if ( unlikely(copy_from_user(&e,
&setextents->extents[i],
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.