From: Michael Brown Date: Thu, 14 Jun 2012 11:54:04 +0000 (+0100) Subject: [realtek] Add missing cpu_to_le16() X-Git-Tag: v1.20.1~1744 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3e9f068bec051645695579907a5e2e46b7cfe4;p=thirdparty%2Fipxe.git [realtek] Add missing cpu_to_le16() Reported-by: Thomas Miletich Signed-off-by: Michael Brown --- diff --git a/src/drivers/net/realtek.c b/src/drivers/net/realtek.c index c906f2519..104ff76eb 100644 --- a/src/drivers/net/realtek.c +++ b/src/drivers/net/realtek.c @@ -478,7 +478,7 @@ static void realtek_refill_rx ( struct realtek_nic *rtl ) { /* Populate receive descriptor */ address = virt_to_bus ( iobuf->data ); rx->address = cpu_to_le64 ( address ); - rx->length = RTL_RX_MAX_LEN; + rx->length = cpu_to_le16 ( RTL_RX_MAX_LEN ); wmb(); rx->flags = ( cpu_to_le16 ( RTL_DESC_OWN ) | ( is_last ? cpu_to_le16 ( RTL_DESC_EOR ) : 0 ) );