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

From: David Miller
Date: Mon Jun 21 2010 - 16:44:45 EST


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>
--
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/