patch-1.3.64 linux/net/ipv4/rarp.c

Next file: linux/net/ipv4/tcp_output.c
Previous file: linux/net/ipv4/ipip.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.63/linux/net/ipv4/rarp.c linux/net/ipv4/rarp.c
@@ -105,6 +105,7 @@
 static inline void rarp_release_entry(struct rarp_table *entry)
 {
 	kfree_s(entry, sizeof(struct rarp_table));
+	MOD_DEC_USE_COUNT;
 	return;
 }
 
@@ -370,6 +371,9 @@
 	entry->htype = htype;
 	memcpy(&entry->ha, &r.arp_ha.sa_data, hlen);
 	entry->dev = dev;
+
+	/* Don't unlink if we have entries to serve. */
+	MOD_INC_USE_COUNT;
 
 	sti();  
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this