aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_hashlimit.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-01-31 04:08:39 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-31 19:27:46 -0800
commitf4f6fb714f139f45f90c6a5048ee67f9960543f1 (patch)
treedd9a67535c4bf77668287f8650781ee10452ac25 /net/netfilter/xt_hashlimit.c
parent[NETFILTER]: conntrack: get rid of sparse warnings (diff)
downloadlinux-dev-f4f6fb714f139f45f90c6a5048ee67f9960543f1.tar.xz
linux-dev-f4f6fb714f139f45f90c6a5048ee67f9960543f1.zip
[NETFILTER]: more sparse fixes
Some lock annotations, and make initializers static. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/xt_hashlimit.c')
-rw-r--r--net/netfilter/xt_hashlimit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index d479ca980115..b224b8f719a4 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -624,6 +624,7 @@ static struct xt_match hashlimit_mt_reg[] __read_mostly = {
/* PROC stuff */
static void *dl_seq_start(struct seq_file *s, loff_t *pos)
+ __acquires(htable->lock)
{
struct proc_dir_entry *pde = s->private;
struct xt_hashlimit_htable *htable = pde->data;
@@ -656,6 +657,7 @@ static void *dl_seq_next(struct seq_file *s, void *v, loff_t *pos)
}
static void dl_seq_stop(struct seq_file *s, void *v)
+ __releases(htable->lock)
{
struct proc_dir_entry *pde = s->private;
struct xt_hashlimit_htable *htable = pde->data;