diff options
author | Eric Dumazet <edumazet@google.com> | 2016-08-26 17:51:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-27 06:59:53 +0200 |
commit | 9dbeea7f08f3784b152d9fb3b86beb34aad77c72 (patch) | |
tree | 8247a2cd0567720c777833fa320686bacbec8132 /lib/build_OID_registry | |
parent | sfc: fix potential stack corruption from running past stat bitmask (diff) | |
download | linux-9dbeea7f08f3784b152d9fb3b86beb34aad77c72.tar.xz linux-9dbeea7f08f3784b152d9fb3b86beb34aad77c72.zip |
rhashtable: fix a memory leak in alloc_bucket_locks()
If vmalloc() was successful, do not attempt a kmalloc_array()
Fixes: 4cf0b354d92e ("rhashtable: avoid large lock-array allocations")
Reported-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/build_OID_registry')
0 files changed, 0 insertions, 0 deletions