Przeglądaj źródła

[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 lat temu
rodzic
commit
fa880ec70a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/drivers/infiniband/arbel.c

+ 1
- 1
src/drivers/infiniband/arbel.c Wyświetl plik

@@ -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;

Ładowanie…
Anuluj
Zapisz