Explorar el Código

[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 hace 17 años
padre
commit
fa880ec70a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/drivers/infiniband/arbel.c

+ 1
- 1
src/drivers/infiniband/arbel.c Ver fichero

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

Loading…
Cancelar
Guardar