Re: [PATCH v4] crypto: sun8i-ss: fix multiple memory leaks in sun8i_ss_hash_run
From: Corentin Labbe <clabbe.montjoie@gmail.com>
Date: 2021-08-02 18:27:14
Also in:
linux-crypto, linux-sunxi, lkml
From: Corentin Labbe <clabbe.montjoie@gmail.com>
Date: 2021-08-02 18:27:14
Also in:
linux-crypto, linux-sunxi, lkml
Le Mon, Jul 26, 2021 at 11:25:21PM +0800, Dongliang Mu a écrit :
In sun8i_ss_hash_run, all the dma_mmap_sg/single will cause memory leak due to no corresponding unmap operation if errors happen. Fix this by adding error handling part for all the dma_mmap_sg/single.
Hello I have nearly the same comment than on your sun8i-ce patch, (copy result only if err===0 and wording). Regards _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel