Skip to content
Commit 9dbeea7f authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

rhashtable: fix a memory leak in alloc_bucket_locks()

If vmalloc() was successful, do not attempt a kmalloc_array()

Fixes: 4cf0b354

 ("rhashtable: avoid large lock-array allocations")
Reported-by: default avatarCAI Qian <caiqian@redhat.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Tested-by: default avatarCAI Qian <caiqian@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e70c70c3
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