patch-2.1.120 linux/drivers/net/sdla_x25.c
Next file: linux/drivers/net/sdladrv.c
Previous file: linux/drivers/net/sdla_ppp.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Fri Sep  4 12:10:19 1998
-  Orig file: 
v2.1.119/linux/drivers/net/sdla_x25.c
-  Orig date: 
Wed Jun 24 22:54:07 1998
diff -u --recursive --new-file v2.1.119/linux/drivers/net/sdla_x25.c linux/drivers/net/sdla_x25.c
@@ -96,7 +96,7 @@
 	struct sk_buff* tx_skb;		/* transmit socket buffer */
 	sdla_t* card;			/* -> owner */
 	int ch_idx;
-	struct enet_statistics ifstats;	/* interface statistics */
+	struct net_device_stats ifstats;	/* interface statistics */
 } x25_channel_t;
 
 typedef struct x25_call_info
@@ -829,6 +829,8 @@
 static struct net_device_stats* if_stats (struct device* dev)
 {
 	x25_channel_t* chan = dev->priv;
+	if(chan==NULL)
+		return chan;
 	return &chan->ifstats;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov