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:
parent
cfccea8c17
commit
e5a2a3cf8c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue