mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[HAL]
* Timo Kreuzer: Fix a NULL pointer dereference. CID 13453. svn path=/trunk/; revision=54487
This commit is contained in:
parent
d96e0b80cf
commit
4696a40648
1 changed files with 5 additions and 2 deletions
|
@ -747,19 +747,22 @@ HalpAcpiTableCacheInit(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
{
|
||||
/* Use HAL heap */
|
||||
HalpUnmapVirtualAddress(MappedAddress, TableLength);
|
||||
|
||||
LoaderExtension = LoaderBlock->Extension;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Use Mm */
|
||||
MmUnmapIoSpace(MappedAddress, TableLength << PAGE_SHIFT);
|
||||
|
||||
LoaderExtension = NULL;
|
||||
}
|
||||
|
||||
/* Cache the RSDT */
|
||||
HalpAcpiCacheTable(&Rsdt->Header);
|
||||
|
||||
/* Check for compatible loader block extension */
|
||||
LoaderExtension = LoaderBlock->Extension;
|
||||
if (LoaderExtension->Size >= 0x58)
|
||||
if (LoaderExtension && (LoaderExtension->Size >= 0x58))
|
||||
{
|
||||
/* Compatible loader: did it provide an ACPI table override? */
|
||||
if ((LoaderExtension->AcpiTable) && (LoaderExtension->AcpiTableSize))
|
||||
|
|
Loading…
Reference in a new issue