From: Rusty Russell Date: Mon, 8 Dec 2014 08:50:38 +0000 (+0800) Subject: hwrng: fix unregister race. X-Git-Tag: fixes-v4.0-rc1~106^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a027f30d72f2c4d27d6dd9bd053205d3102de7d1;p=pandora-kernel.git hwrng: fix unregister race. The previous patch added one potential problem: we can still be reading from a hwrng when it's unregistered. Add a wait for zero in the hwrng_unregister path. Signed-off-by: Rusty Russell Signed-off-by: Amos Kong Signed-off-by: Herbert Xu --- Reading git-diff-tree failed