projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'dma-buf-for-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/sumits...
[firefly-linux-kernel-4.4.55.git]
/
lib
/
mpi
/
mpiutil.c
diff --git
a/lib/mpi/mpiutil.c
b/lib/mpi/mpiutil.c
index bf076d281d4045da0b4b780ecd19a19db3987485..314f4dfa603ee98fd89e1f1006a09e8147af6cc7 100644
(file)
--- a/
lib/mpi/mpiutil.c
+++ b/
lib/mpi/mpiutil.c
@@
-69,7
+69,7
@@
void mpi_free_limb_space(mpi_ptr_t a)
if (!a)
return;
if (!a)
return;
- kfree(a);
+ k
z
free(a);
}
void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs)
}
void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs)
@@
-95,7
+95,7
@@
int mpi_resize(MPI a, unsigned nlimbs)
if (!p)
return -ENOMEM;
memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t));
if (!p)
return -ENOMEM;
memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t));
- kfree(a->d);
+ k
z
free(a->d);
a->d = p;
} else {
a->d = kzalloc(nlimbs * sizeof(mpi_limb_t), GFP_KERNEL);
a->d = p;
} else {
a->d = kzalloc(nlimbs * sizeof(mpi_limb_t), GFP_KERNEL);
@@
-112,7
+112,7
@@
void mpi_free(MPI a)
return;
if (a->flags & 4)
return;
if (a->flags & 4)
- kfree(a->d);
+ k
z
free(a->d);
else
mpi_free_limb_space(a->d);
else
mpi_free_limb_space(a->d);