patch-2.4.23 linux-2.4.23/net/8021q/vlan.c

Next file: linux-2.4.23/net/8021q/vlan_dev.c
Previous file: linux-2.4.23/mm/vmscan.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/net/8021q/vlan.c linux-2.4.23/net/8021q/vlan.c
@@ -533,7 +533,9 @@
 	    
 	grp->vlan_devices[VLAN_ID] = new_dev;
 
-	vlan_proc_add_dev(new_dev); /* create it's proc entry */
+	if (vlan_proc_add_dev(new_dev)<0)/* create it's proc entry */
+            	printk(KERN_WARNING "VLAN: failed to add proc entry for %s\n",
+					                 new_dev->name);
 
 	if (real_dev->features & NETIF_F_HW_VLAN_FILTER)
 		real_dev->vlan_rx_add_vid(real_dev, VLAN_ID);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)