Messages in this thread | | | Date | Fri, 17 Dec 2021 19:39:40 +1100 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: hisilicon/hpre - fix memory leak in hpre_curve25519_src_init() |
| |
On Sat, Dec 11, 2021 at 04:17:19PM +0800, Weili Qian wrote: > hpre_curve25519_src_init() allocates memory for 'ptr' before calling > memcmp(). If memcmp() returns 0, the function will return '-EINVAL' > without freeing memory. > > Signed-off-by: Weili Qian <qianweili@huawei.com> > --- > drivers/crypto/hisilicon/hpre/hpre_crypto.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |