소스 검색

[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 13 년 전
부모
커밋
cc3e9f068b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/drivers/net/realtek.c

+ 1
- 1
src/drivers/net/realtek.c 파일 보기

478
 		/* Populate receive descriptor */
478
 		/* Populate receive descriptor */
479
 		address = virt_to_bus ( iobuf->data );
479
 		address = virt_to_bus ( iobuf->data );
480
 		rx->address = cpu_to_le64 ( address );
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
 		wmb();
482
 		wmb();
483
 		rx->flags = ( cpu_to_le16 ( RTL_DESC_OWN ) |
483
 		rx->flags = ( cpu_to_le16 ( RTL_DESC_OWN ) |
484
 			      ( is_last ? cpu_to_le16 ( RTL_DESC_EOR ) : 0 ) );
484
 			      ( is_last ? cpu_to_le16 ( RTL_DESC_EOR ) : 0 ) );

Loading…
취소
저장