patch-2.3.19 linux/drivers/net/sb1000.c

Next file: linux/drivers/net/slip.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.18/linux/drivers/net/sb1000.c linux/drivers/net/sb1000.c
@@ -912,6 +912,7 @@
 	/* datagram completed: send to upper level */
 	skb_trim(skb, dlen);
 	netif_rx(skb);
+	stats->rx_bytes+=dlen;
 	stats->rx_packets++;
 	lp->rx_bytes += dlen;
 	lp->rx_skb[ns] = 0;
@@ -1257,7 +1258,7 @@
 	int i;
 	for (i = 0; i < 100; i++) {
 		sprintf(devname, "cm%d", i);
-		if (dev_get(devname) == NULL) break;
+		if (dev_get(devname) == 0) break;
 	}
 	if (i == 100) {
 		printk(KERN_ERR "sb1000: can't register any device cm<n>\n");

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