[PATCH] crypto: ecc : Wipe memory for p on errors.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Loganaden Velvindron <logan@xxxxxxxxxx>
---
 crypto/ecc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ecc.c b/crypto/ecc.c
index 414c78a..32f50c34 100644
--- a/crypto/ecc.c
+++ b/crypto/ecc.c
@@ -88,7 +88,7 @@ static struct ecc_point *ecc_alloc_point(unsigned int ndigits)
 err_alloc_y:
 	ecc_free_digits_space(p->x);
 err_alloc_x:
-	kfree(p);
+	kzfree(p);
 	return NULL;
 }
 
-- 
2.9.3




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux