Skip to content

Commit

Permalink
[hermon] Allocate sufficient space for firmware buffer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Michael Brown committed Sep 25, 2008
1 parent c24bc34 commit b45b392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/infiniband/hermon.c
Expand Up @@ -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;
Expand Down

0 comments on commit b45b392

Please sign in to comment.