patch-2.4.18 linux/net/ipv4/netfilter/ipfwadm_core.c
Next file: linux/net/ipv4/netfilter/ipt_LOG.c
Previous file: linux/net/ipv4/netfilter/ipchains_core.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Mon Feb 4 16:43:43 2002
- Orig file:
linux.orig/net/ipv4/netfilter/ipfwadm_core.c
- Orig date:
Mon Feb 18 20:18:40 2002
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/net/ipv4/netfilter/ipfwadm_core.c linux/net/ipv4/netfilter/ipfwadm_core.c
@@ -20,7 +20,7 @@
* license in recognition of the original copyright.
* -- Alan Cox.
*
- * $Id: ipfwadm_core.c,v 1.9 2001/09/18 22:29:10 davem Exp $
+ * $Id: ipfwadm_core.c,v 1.9.2.2 2002/01/24 15:50:42 davem Exp $
*
* Ported from BSD to Linux,
* Alan Cox 22/Nov/1994.
@@ -104,6 +104,7 @@
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/errno.h>
+#include <linux/module.h>
#include <linux/socket.h>
#include <linux/sockios.h>
@@ -687,6 +688,7 @@
ftmp = *chainptr;
*chainptr = ftmp->fw_next;
kfree(ftmp);
+ MOD_DEC_USE_COUNT;
}
restore_flags(flags);
}
@@ -730,6 +732,7 @@
ftmp->fw_next = *chainptr;
*chainptr=ftmp;
restore_flags(flags);
+ MOD_INC_USE_COUNT;
return(0);
}
@@ -780,6 +783,7 @@
else
*chainptr=ftmp;
restore_flags(flags);
+ MOD_INC_USE_COUNT;
return(0);
}
@@ -853,9 +857,10 @@
}
}
restore_flags(flags);
- if (was_found)
+ if (was_found) {
+ MOD_DEC_USE_COUNT;
return 0;
- else
+ } else
return(EINVAL);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)