Explorar el Código

[realtek] Add missing cpu_to_le16()

Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 12 años
padre
commit
cc3e9f068b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/drivers/net/realtek.c

+ 1
- 1
src/drivers/net/realtek.c Ver fichero

@@ -478,7 +478,7 @@ static void realtek_refill_rx ( struct realtek_nic *rtl ) {
478 478
 		/* Populate receive descriptor */
479 479
 		address = virt_to_bus ( iobuf->data );
480 480
 		rx->address = cpu_to_le64 ( address );
481
-		rx->length = RTL_RX_MAX_LEN;
481
+		rx->length = cpu_to_le16 ( RTL_RX_MAX_LEN );
482 482
 		wmb();
483 483
 		rx->flags = ( cpu_to_le16 ( RTL_DESC_OWN ) |
484 484
 			      ( is_last ? cpu_to_le16 ( RTL_DESC_EOR ) : 0 ) );

Loading…
Cancelar
Guardar