]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[realtek] Add missing cpu_to_le16()
authorMichael Brown <mcb30@ipxe.org>
Thu, 14 Jun 2012 11:54:04 +0000 (12:54 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 27 Jun 2012 18:15:16 +0000 (19:15 +0100)
Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/realtek.c

index c906f2519daee07a0d5296391cee1932108ef5a4..104ff76eb159bf0463ef9cdd990868d8c7dfd340 100644 (file)
@@ -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 ) );