Re: [PATCH] CRYPTO: ablkcipher, avoid NULL dereference

From: Herbert Xu
Date: Wed Jun 23 2010 - 06:02:20 EST


On Mon, Jun 21, 2010 at 01:44:52PM -0700, David Miller wrote:
> From: Jiri Slaby <jslaby@xxxxxxx>
> Date: Mon, 21 Jun 2010 17:01:23 +0200
>
> > 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@xxxxxxx>
>
> Thanks for fixing this:
>
> Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>

Patch applied to crypt-2.6.

Thanks!
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/