Ver código fonte

[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 12 anos atrás
pai
commit
cc3e9f068b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/drivers/net/realtek.c

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

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

Carregando…
Cancelar
Salvar