瀏覽代碼

[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 年之前
父節點
當前提交
cc3e9f068b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/drivers/net/realtek.c

+ 1
- 1
src/drivers/net/realtek.c 查看文件

@@ -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…
取消
儲存