The physical base pointer can be NULL since it's only allocated if certain flags are passed. Fixes regression introduced in r36999 and hopefully ticket #6137. Axel, please review.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37016 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
77ba3b5259
commit
5003f66a4c
@ -170,7 +170,8 @@ intel_allocate_memory(intel_info &info, size_t size, size_t alignment,
|
||||
phys_addr_t physicalBase;
|
||||
status_t error = gGART->allocate_memory(info.aperture, size, alignment,
|
||||
flags, _base, &physicalBase);
|
||||
*_physicalBase = physicalBase;
|
||||
if (_physicalBase != NULL)
|
||||
*_physicalBase = physicalBase;
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user