eCryptfs: Use skcipher and shash
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Mar 2016 09:06:01 +0000 (17:06 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Mar 2016 11:09:00 +0000 (19:09 +0800)
commitd1558f4e95cb14b0fff5c0b839c15a21f7e8aed0
treed214356cb58f5bc51c210b45244bcf7dbab6f7e0
parent34074205bb9f04b416efb3cbedcd90f418c86200
eCryptfs: Use skcipher and shash

eCryptfs: Fix null pointer dereference on kzalloc error path

The conversion to skcipher and shash added a couple of null pointer
dereference bugs on the kzalloc failure path.  This patch fixes them.

Fixes: 3095e8e366b4 ("eCryptfs: Use skcipher and shash")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
fs/ecryptfs/keystore.c