Re: [PATCH] ubifs: Fix memleak in ubifs_init_authentication

2021-01-04 Thread Zhihao Cheng
在 2021/1/5 14:03, Dinghao Liu 写道: When crypto_shash_digestsize() fails, c->hmac_tfm has not been freed before returning, which leads to memleak. Fixes: 49525e5eecca5 ("ubifs: Add helper functions for authentication support") Signed-off-by: Dinghao Liu Reviewed-by: Zhihao Cheng ---

[PATCH] ubifs: Fix memleak in ubifs_init_authentication

2021-01-04 Thread Dinghao Liu
When crypto_shash_digestsize() fails, c->hmac_tfm has not been freed before returning, which leads to memleak. Fixes: 49525e5eecca5 ("ubifs: Add helper functions for authentication support") Signed-off-by: Dinghao Liu --- fs/ubifs/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)