Browse Source

[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 years ago
parent
commit
cc3e9f068b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/realtek.c

+ 1
- 1
src/drivers/net/realtek.c View File

@@ -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…
Cancel
Save