diff options
author | 2012-01-26 21:06:54 +0000 | |
---|---|---|
committer | 2012-01-26 21:06:54 +0000 | |
commit | 9a95b9e7416c2e7fa799e54078a1adf84a7ed0bf (patch) | |
tree | 158cd337307a4a4e09a3fb5110f29ab0136bef6c /lib/mpi/mpicoder.c | |
parent | ARM: 7301/1: Rename the T() macro to TUSER() to avoid namespace conflicts (diff) | |
parent | MFD: ucb1x00-ts: fix resume failure (diff) | |
download | linux-dev-9a95b9e7416c2e7fa799e54078a1adf84a7ed0bf.tar.xz linux-dev-9a95b9e7416c2e7fa799e54078a1adf84a7ed0bf.zip |
Merge branch 'sa11x0-mcp-fixes' into fixes
Diffstat (limited to 'lib/mpi/mpicoder.c')
-rw-r--r-- | lib/mpi/mpicoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c index fe84bb978e3b..716802b774ea 100644 --- a/lib/mpi/mpicoder.c +++ b/lib/mpi/mpicoder.c @@ -255,6 +255,8 @@ void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) if (!n) n++; /* avoid zero length allocation */ p = buffer = kmalloc(n, GFP_KERNEL); + if (!p) + return NULL; for (i = a->nlimbs - 1; i >= 0; i--) { alimb = a->d[i]; |