Re: [PATCH][next] crypto: sun8i-ss@: fix memory leak on pointer d

2020-10-01 Thread Herbert Xu
On Tue, Sep 29, 2020 at 02:38:19PM +0100, Colin King wrote: > From: Colin Ian King > > Currently the error return path on a failed dma_mapping_error call > is not kfree'ing memory allocated to d. Add an extra error exit label > to end of the function where the kfree and return occurs to fix this

[PATCH][next] crypto: sun8i-ss@: fix memory leak on pointer d

2020-09-29 Thread Colin King
From: Colin Ian King Currently the error return path on a failed dma_mapping_error call is not kfree'ing memory allocated to d. Add an extra error exit label to end of the function where the kfree and return occurs to fix this issue. Addresses-Coverity: ("Resource leak") Fixes: ac2614d721de ("cr