mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-26 19:29:04 +00:00
[arbel] Allocate sufficient space for firmware buffer
We were accidentally allocating only half the required amount of memory (given the alignment method) for the firmware buffer, leading to conflicts between the firmware buffer and gPXE code/data segments.
This commit is contained in:
parent
b45b39260c
commit
fa880ec70a
@ -1714,7 +1714,7 @@ static int arbel_start_firmware ( struct arbel *arbel ) {
|
||||
|
||||
/* Allocate firmware pages and map firmware area */
|
||||
fw_size = ( fw_pages * 4096 );
|
||||
arbel->firmware_area = umalloc ( fw_size );
|
||||
arbel->firmware_area = umalloc ( fw_size * 2 );
|
||||
if ( ! arbel->firmware_area ) {
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc_fa;
|
||||
|
Loading…
Reference in New Issue
Block a user