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>

authored by Jiri Slaby and committed by Herbert Xu 2716fbf6 0f0a8fa7

+1 -1
+1 -1
crypto/ablkcipher.c
··· 165 166 p = kmalloc(n, GFP_ATOMIC); 167 if (!p) 168 - ablkcipher_walk_done(req, walk, -ENOMEM); 169 170 base = p + 1; 171
··· 165 166 p = kmalloc(n, GFP_ATOMIC); 167 if (!p) 168 + return ablkcipher_walk_done(req, walk, -ENOMEM); 169 170 base = p + 1; 171