git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
crypto
/
mpi
/
mpiutil.c
diff --git
a/crypto/mpi/mpiutil.c
b/crypto/mpi/mpiutil.c
index
5bec431
..
26157e9
100644
(file)
--- a/
crypto/mpi/mpiutil.c
+++ b/
crypto/mpi/mpiutil.c
@@
-97,10
+97,9
@@
int mpi_resize(MPI a, unsigned nlimbs)
kfree(a->d);
a->d = p;
} else {
kfree(a->d);
a->d = p;
} else {
- a->d = k
m
alloc( nlimbs * sizeof(mpi_limb_t), GFP_KERNEL);
+ a->d = k
z
alloc( nlimbs * sizeof(mpi_limb_t), GFP_KERNEL);
if (!a->d)
return -ENOMEM;
if (!a->d)
return -ENOMEM;
- memset(a->d, 0, nlimbs * sizeof(mpi_limb_t) );
}
a->alloced = nlimbs;
return 0;
}
a->alloced = nlimbs;
return 0;