diff options
Diffstat (limited to 'lib/mpi/mpi-mpow.c')
-rw-r--r-- | lib/mpi/mpi-mpow.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mpi/mpi-mpow.c b/lib/mpi/mpi-mpow.c index 4cc75933c5a7..7328d0d6c748 100644 --- a/lib/mpi/mpi-mpow.c +++ b/lib/mpi/mpi-mpow.c | |||
@@ -73,7 +73,7 @@ int mpi_mulpowm(MPI res, MPI *basearray, MPI *exparray, MPI m) | |||
73 | 73 | ||
74 | G = kzalloc((1 << k) * sizeof *G, GFP_KERNEL); | 74 | G = kzalloc((1 << k) * sizeof *G, GFP_KERNEL); |
75 | if (!G) | 75 | if (!G) |
76 | goto nomem; | 76 | goto err_out; |
77 | 77 | ||
78 | /* and calculate */ | 78 | /* and calculate */ |
79 | tmp = mpi_alloc(mpi_get_nlimbs(m) + 1); | 79 | tmp = mpi_alloc(mpi_get_nlimbs(m) + 1); |
@@ -129,5 +129,6 @@ nomem: | |||
129 | for (i = 0; i < (1 << k); i++) | 129 | for (i = 0; i < (1 << k); i++) |
130 | mpi_free(G[i]); | 130 | mpi_free(G[i]); |
131 | kfree(G); | 131 | kfree(G); |
132 | err_out: | ||
132 | return rc; | 133 | return rc; |
133 | } | 134 | } |