[Freedreno] [PATCH 4/4] s390/zcrypt: fix memleak at release

Heiko Carstens heiko.carstens at de.ibm.com
Mon Oct 14 06:18:46 UTC 2019


On Thu, Oct 10, 2019 at 03:13:33PM +0200, Johan Hovold wrote:
> If a process is interrupted while accessing the crypto device and the
> global ap_perms_mutex is contented, release() could return early and
> fail to free related resources.
> 
> Fixes: 00fab2350e6b ("s390/zcrypt: multiple zcrypt device nodes support")
> Cc: stable <stable at vger.kernel.org>     # 4.19
> Cc: Harald Freudenberger <freude at linux.ibm.com>
> Cc: Martin Schwidefsky <schwidefsky at de.ibm.com>
> Signed-off-by: Johan Hovold <johan at kernel.org>
> ---
>  drivers/s390/crypto/zcrypt_api.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied, thanks!



More information about the Freedreno mailing list