Re: about ipmr

From: Raj
Date: Fri Jan 09 2004 - 01:38:30 EST


I would prefer this way of checking the NULL

That would be more consistent with ip_gre.c and ipip.c

any suggestions ?

/Raj

--- ipmr.c.org 2004-01-09 12:07:45.271713432 +0530
+++ ipmr.c 2004-01-09 12:09:39.389364912 +0530
@@ -205,6 +205,9 @@ static struct net_device *ipmr_reg_vif(v
dev = alloc_netdev(sizeof(struct net_device_stats), "pimreg",
reg_vif_setup);

+ if( dev == NULL)
+ return NULL;
+
if (register_netdevice(dev)) {
kfree(dev);
return NULL;