diff --git a/crypto/af_alg.c b/crypto/af_alg.c index a8ff3c44e13ca6ec0ad3aadbca1988665857da16..76d739d08211892c37f2f1be5162fa6c58ad0187 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c @@ -188,7 +188,7 @@ static int alg_setkey(struct sock *sk, char __user *ukey, err = type->setkey(ask->private, key, keylen); out: - sock_kfree_s(sk, key, keylen); + sock_kzfree_s(sk, key, keylen); return err; }