Browse Source

[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.
tags/v0.9.4
Michael Brown 15 years ago
parent
commit
fa880ec70a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/infiniband/arbel.c

+ 1
- 1
src/drivers/infiniband/arbel.c View File

@@ -1714,7 +1714,7 @@ static int arbel_start_firmware ( struct arbel *arbel ) {
1714 1714
 
1715 1715
 	/* Allocate firmware pages and map firmware area */
1716 1716
 	fw_size = ( fw_pages * 4096 );
1717
-	arbel->firmware_area = umalloc ( fw_size );
1717
+	arbel->firmware_area = umalloc ( fw_size * 2 );
1718 1718
 	if ( ! arbel->firmware_area ) {
1719 1719
 		rc = -ENOMEM;
1720 1720
 		goto err_alloc_fa;

Loading…
Cancel
Save