X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=crypto%2Fmpi%2Fmpih-mul.c;h=fdefd19676a939e7d95482faf76dc85b0b5c182a;hb=refs%2Fheads%2Fvserver;hp=c4eaca71e3a2717eb7f04b9e9b751a82074ee4e4;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/crypto/mpi/mpih-mul.c b/crypto/mpi/mpih-mul.c index c4eaca71e..fdefd1967 100644 --- a/crypto/mpi/mpih-mul.c +++ b/crypto/mpi/mpih-mul.c @@ -428,10 +428,9 @@ mpihelp_mul_karatsuba_case( mpi_ptr_t prodp, } else { if( !ctx->next ) { - ctx->next = kmalloc( sizeof *ctx, GFP_KERNEL ); + ctx->next = kzalloc( sizeof *ctx, GFP_KERNEL ); if (!ctx->next) return -ENOMEM; - memset(ctx->next, 0, sizeof(ctx)); } if (mpihelp_mul_karatsuba_case( ctx->tspace, vp, vsize,