Procházet zdrojové kódy

[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 před 15 roky
rodič
revize
fa880ec70a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/drivers/infiniband/arbel.c

+ 1
- 1
src/drivers/infiniband/arbel.c Zobrazit soubor

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

Načítá se…
Zrušit
Uložit