Re: about ipmr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux