]> err.no Git - linux-2.6/commitdiff
endianness noise in tulip_core
authorAl Viro <viro@ftp.linux.org.uk>
Sun, 23 Dec 2007 20:01:04 +0000 (20:01 +0000)
committerJeff Garzik <jeff@garzik.org>
Sat, 12 Jan 2008 22:33:04 +0000 (17:33 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tulip/tulip_core.c

index e5e2c9c4ebfee5cc1174e7c36130d8da5b516a65..ed600bf56e786d6186ad64a04ad16c57dcd16c31 100644 (file)
@@ -797,7 +797,8 @@ static int tulip_close (struct net_device *dev)
 
                tp->rx_ring[i].status = 0;      /* Not owned by Tulip chip. */
                tp->rx_ring[i].length = 0;
-               tp->rx_ring[i].buffer1 = 0xBADF00D0;    /* An invalid address. */
+               /* An invalid address. */
+               tp->rx_ring[i].buffer1 = cpu_to_le32(0xBADF00D0);
                if (skb) {
                        pci_unmap_single(tp->pdev, mapping, PKT_BUF_SZ,
                                         PCI_DMA_FROMDEVICE);