On Sun, Mar 04, 2018 at 05:29:48PM +0200, Paul Blakey wrote: > When inserting duplicate objects (those with the same key), > current rhlist implementation messes up the chain pointers by > updating the bucket pointer instead of prev next pointer to the > newly inserted node. This causes missing elements on removal and > travesal. > > Fix that by properly updating pprev pointer to point to > the correct rhash_head next pointer. > > Issue: 1241076 > Change-Id: I86b2c140bcb4aeb10b70a72a267ff590bb2b17e7 > Fixes: ca26893f05e8 ('rhashtable: Add rhlist interface') > Signed-off-by: Paul Blakey <pa...@mellanox.com>
Acked-by: Herbert Xu <herb...@gondor.apana.org.au> -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt