mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
netfilter: ctnetlink: fix sleep in read-side lock section
Fix allocation with GFP_KERNEL in ctnetlink_create_conntrack() under read-side lock sections. This problem was introduced in 2.6.25. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1575e7ea01
commit
cb1cb5c474
1 changed files with 1 additions and 1 deletions
|
@ -1139,7 +1139,7 @@ ctnetlink_create_conntrack(struct nlattr *cda[],
|
|||
rcu_read_lock();
|
||||
helper = __nf_ct_helper_find(rtuple);
|
||||
if (helper) {
|
||||
help = nf_ct_helper_ext_add(ct, GFP_KERNEL);
|
||||
help = nf_ct_helper_ext_add(ct, GFP_ATOMIC);
|
||||
if (help == NULL) {
|
||||
rcu_read_unlock();
|
||||
err = -ENOMEM;
|
||||
|
|
Loading…
Reference in a new issue