patch-2.4.20 linux-2.4.20/drivers/net/hp-plus.c

Next file: linux-2.4.20/drivers/net/hp100.c
Previous file: linux-2.4.20/drivers/net/hamradio/yam.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/net/hp-plus.c linux-2.4.20/drivers/net/hp-plus.c
@@ -351,7 +351,7 @@
 	outw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION);
 	isa_memcpy_fromio(hdr, dev->mem_start, sizeof(struct e8390_pkt_hdr));
 	outw(option_reg, ioaddr + HPP_OPTION);
-	hdr->count = (hdr->count + 3) & ~3;	/* Round up allocation. */
+	hdr->count = (le16_to_cpu(hdr->count) + 3) & ~3;	/* Round up allocation. */
 }
 
 static void

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)