[PATCH] cryptd: Fix uninitialized return value

2009-07-15 Thread Steffen Klassert
If cryptd_alloc_instance() fails, the return value is uninitialized. This patch fixes this by setting the return value. Signed-off-by: Steffen Klassert --- crypto/cryptd.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/crypto/cryptd.c b/crypto/cryptd.c index 5dabb7d..f

Re: [PATCH] cryptd: Fix uninitialized return value

2009-07-15 Thread Herbert Xu
On Wed, Jul 15, 2009 at 10:50:09AM +0200, Steffen Klassert wrote: > If cryptd_alloc_instance() fails, the return value is uninitialized. > This patch fixes this by setting the return value. > > Signed-off-by: Steffen Klassert Patch applied. Thanks Steffen! -- Visit Openswan at http://www.opens

Re: [PATCH] cryptd: Fix uninitialized return value

2009-07-15 Thread Herbert Xu
On Wed, Jul 15, 2009 at 10:50:09AM +0200, Steffen Klassert wrote: > If cryptd_alloc_instance() fails, the return value is uninitialized. > This patch fixes this by setting the return value. > > Signed-off-by: Steffen Klassert Just found two similar bugs in xcbc and hmac. I'll fix them up. Than