From fccac68c38a8a6308dcfeb322da50f0097d6ce85 Mon Sep 17 00:00:00 2001 From: Dmitry Kasatkin Date: Thu, 26 Jan 2012 19:13:19 +0200 Subject: [PATCH] --- yaml --- r: 287115 b: refs/heads/master c: 4877e056192245b387aae004ab38f7f3899dd57c h: refs/heads/master i: 287113: 7531c0068e7f1ad367b12dbf4e51766f09f9baee 287111: e442254218c12ba98f3edb811c963ed9f519ace3 v: v3 --- [refs] | 2 +- trunk/lib/mpi/mpiutil.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a08621d3a533..2f34d78bbb28 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b35e286a640f31d619a637332972498b51f3fd90 +refs/heads/master: 4877e056192245b387aae004ab38f7f3899dd57c diff --git a/trunk/lib/mpi/mpiutil.c b/trunk/lib/mpi/mpiutil.c index 6bfc41f62b8f..26e4ed31e256 100644 --- a/trunk/lib/mpi/mpiutil.c +++ b/trunk/lib/mpi/mpiutil.c @@ -58,6 +58,9 @@ mpi_ptr_t mpi_alloc_limb_space(unsigned nlimbs) { size_t len = nlimbs * sizeof(mpi_limb_t); + if (!len) + return NULL; + return kmalloc(len, GFP_KERNEL); }