Skip to content
Commit d8bdff59 authored by Herbert Xu's avatar Herbert Xu Committed by Pablo Neira Ayuso
Browse files

netfilter: Fix potential crash in nft_hash walker



When we get back an EAGAIN from rhashtable_walk_next we were
treating it as a valid object which obviously doesn't work too
well.

Luckily this is hard to trigger so it seems nobody has run into
it yet.

This patch fixes it by redoing the next call when we get an EAGAIN.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 78146572
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment