Messages in this thread Patch in this message | | | Date | Fri, 09 Jan 2004 12:11:39 +0530 | From | Raj <> | Subject | Re: about ipmr |
| |
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; | |