mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-20 14:33:15 +00:00
[hermon] 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
c24bc349ea
commit
b45b39260c
@ -1684,7 +1684,7 @@ static int hermon_start_firmware ( struct hermon *hermon ) {
|
||||
|
||||
/* Allocate firmware pages and map firmware area */
|
||||
fw_size = ( fw_pages * HERMON_PAGE_SIZE );
|
||||
hermon->firmware_area = umalloc ( fw_size );
|
||||
hermon->firmware_area = umalloc ( fw_size * 2 );
|
||||
if ( ! hermon->firmware_area ) {
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc_fa;
|
||||
|
Loading…
x
Reference in New Issue
Block a user