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;