ddf: fix memory corruption bug.

When adding to a point, you don't need to multiple by the size
of the pointer - C does that for you!
This commit is contained in:
NeilBrown 2009-03-09 13:55:59 +11:00
parent cfccea8c17
commit e5a2a3cf8c
1 changed files with 1 additions and 1 deletions

View File

@ -1982,7 +1982,7 @@ static int init_super_ddf_bvd(struct supertype *st,
memset(vc->vendor, 0xff, 32);
memset(vc->phys_refnum, 0xff, 4*ddf->mppe);
memset(vc->phys_refnum+(ddf->mppe * 4), 0x00, 8*ddf->mppe);
memset(vc->phys_refnum+ddf->mppe, 0x00, 8*ddf->mppe);
vcl->next = ddf->conflist;
ddf->conflist = vcl;