]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited2b75105563227d353a95a7c7c5905d15c13ba0
tree892a4eeba956db8f8abc28420ec29ac4cb0e7e53
parent9aff26dd60c964e3d6ee69f28aa7e10a7268de05
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