crypto: skcipher - avoid NULL dereference
commit2716fbf63ee39eadc1aa9b3841b20f75b99a9bc3
authorJiri Slaby <jslaby@suse.cz>
Wed, 23 Jun 2010 10:01:45 +0000 (23 20:01 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Jun 2010 10:01:45 +0000 (23 20:01 +1000)
treef267d6653c2b4d0f11b4b17330bf6a37abdfc42d
parent0f0a8fa735bbde4b0bc3e96e4bb2e5b380a324db
crypto: skcipher - avoid NULL dereference

Stanse found a potential NULL dereference in ablkcipher_next_slow.
Even though kmalloc fails, its retval is dereferenced later. Return
from that function properly earlier.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c