From: Herbert Xu Date: Tue, 3 Feb 2015 20:33:22 +0000 (+1100) Subject: rhashtable: Fix potential crash on destroy in rhashtable_shrink X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~63^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28134a53d624ae7e90fff8500b25b3add4d40b92;p=pandora-kernel.git rhashtable: Fix potential crash on destroy in rhashtable_shrink The current being_destroyed check in rhashtable_expand is not enough since if we start a shrinking process after freeing all elements in the table that's also going to crash. This patch adds a being_destroyed check to the deferred worker thread so that we bail out as soon as we take the lock. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed