Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360768
b: refs/heads/master
c: cf1c4a0
h: refs/heads/master
v: v3
  • Loading branch information
Josh Hunt authored and Jozsef Kadlecsik committed Feb 21, 2013
1 parent cd9e66b commit bb90062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: e29371d762df5bb35d2bc434ea266a046e5a0a75
refs/heads/master: cf1c4a094f46ace5bf00078e2db73491ddf018fe
4 changes: 3 additions & 1 deletion trunk/include/linux/netfilter/ipset/ip_set_ahash.h
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,8 @@ type_pf_tresize(struct ip_set *set, bool retried)
retry:
ret = 0;
htable_bits++;
pr_debug("attempt to resize set %s from %u to %u, t %p\n",
set->name, orig->htable_bits, htable_bits, orig);
if (!htable_bits) {
/* In case we have plenty of memory :-) */
pr_warning("Cannot increase the hashsize of set %s further\n",
Expand All @@ -873,7 +875,7 @@ type_pf_tresize(struct ip_set *set, bool retried)
data = ahash_tdata(n, j);
m = hbucket(t, HKEY(data, h->initval, htable_bits));
ret = type_pf_elem_tadd(m, data, AHASH_MAX(h), 0,
type_pf_data_timeout(data));
ip_set_timeout_get(type_pf_data_timeout(data)));
if (ret < 0) {
read_unlock_bh(&set->lock);
ahash_destroy(t);
Expand Down

0 comments on commit bb90062

Please sign in to comment.