From: Herbert Xu Date: Fri, 15 Jan 2016 14:01:08 +0000 (+0800) Subject: crypto: algif_hash - Fix race condition in hash_check_key X-Git-Tag: v3.2.77~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d33fff4858afd802c90da36e2020641b1a9599b;p=pandora-kernel.git crypto: algif_hash - Fix race condition in hash_check_key commit ad46d7e33219218605ea619e32553daf4f346b9f upstream. We need to lock the child socket in hash_check_key as otherwise two simultaneous calls can cause the parent socket to be freed. Signed-off-by: Herbert Xu Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed