Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78280
b: refs/heads/master
c: 4c61097
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and David S. Miller committed Jan 28, 2008
1 parent 3ecdaab commit 7627f0f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 338e8a79262c3709e314fbcc7ca193323e534934
refs/heads/master: 4c610979576d8778c401a9b1d247ed14f6cee998
6 changes: 2 additions & 4 deletions trunk/net/ipv4/netfilter/ipt_CLUSTERIP.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,9 @@ clusterip_config_entry_put(struct clusterip_config *c)
static struct clusterip_config *
__clusterip_config_find(__be32 clusterip)
{
struct list_head *pos;
struct clusterip_config *c;

list_for_each(pos, &clusterip_configs) {
struct clusterip_config *c = list_entry(pos,
struct clusterip_config, list);
list_for_each_entry(c, &clusterip_configs, list) {
if (c->clusterip == clusterip)
return c;
}
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/netfilter/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ static DEFINE_MUTEX(nf_hook_mutex);

int nf_register_hook(struct nf_hook_ops *reg)
{
struct list_head *i;
struct nf_hook_ops *elem;
int err;

err = mutex_lock_interruptible(&nf_hook_mutex);
if (err < 0)
return err;
list_for_each(i, &nf_hooks[reg->pf][reg->hooknum]) {
if (reg->priority < ((struct nf_hook_ops *)i)->priority)
list_for_each_entry(elem, &nf_hooks[reg->pf][reg->hooknum], list) {
if (reg->priority < elem->priority)
break;
}
list_add_rcu(&reg->list, i->prev);
list_add_rcu(&reg->list, elem->list.prev);
mutex_unlock(&nf_hook_mutex);
return 0;
}
Expand Down

0 comments on commit 7627f0f

Please sign in to comment.