rhashtable: Fix read-side crash during rehash
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Mar 2015 01:54:10 +0000 (12:54 +1100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 03:02:30 +0000 (23:02 -0400)
commit393619474ec0ba2a16dee12ec78fd43164f1e9b7
tree892a4eeba956db8f8abc28420ec29ac4cb0e7e53
parenta5b6846f9e1a080493210013385c28faecee36f0
rhashtable: Fix read-side crash during rehash

This patch fixes a typo rhashtable_lookup_compare where we fail
to recompute the hash when looking up the new table.  This causes
elements to be missed and potentially a crash during a resize.

Reported-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/rhashtable.c