default bits for MaskFind will be 0xff

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2019-10-09 07:12:05 +03:00
parent be7ab87dca
commit d139fa4536

View File

@ -1148,7 +1148,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
if (TmpData == NULL || MaskLen == 0) {
Patches->KextPatches[Patches->NrKexts].MaskFind = NULL;
} else {
Patches->KextPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
Patches->KextPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
SetMem(Patches->KextPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
CopyMem(Patches->KextPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
}
FreePool(TmpData);
@ -1264,7 +1265,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
if (TmpData == NULL || MaskLen == 0) {
Patches->KernelPatches[Patches->NrKexts].MaskFind = NULL;
} else {
Patches->KernelPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
Patches->KernelPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
SetMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
CopyMem(Patches->KernelPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
}
FreePool(TmpData);
@ -1365,7 +1367,8 @@ FillinKextPatches (IN OUT KERNEL_AND_KEXT_PATCHES *Patches,
if (TmpData == NULL || MaskLen == 0) {
Patches->BootPatches[Patches->NrKexts].MaskFind = NULL;
} else {
Patches->BootPatches[Patches->NrKexts].MaskFind = AllocateZeroPool (FindLen);
Patches->BootPatches[Patches->NrKexts].MaskFind = AllocatePool (FindLen);
SetMem(Patches->BootPatches[Patches->NrKexts].MaskFind, 0xFF, FindLen);
CopyMem(Patches->BootPatches[Patches->NrKexts].MaskFind, TmpData, MaskLen);
}
FreePool(TmpData);