Re: [PATCH] crypto: sa2ul - fix memory leak in sa_cra_init_aead()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ma Ke <make24@xxxxxxxxxxx> writes:

> Currently the resource allocated by crypto_alloc_shash() is not freed in
> case crypto_alloc_aead() fails, resulting in memory leak.
>
> Add crypto_free_shash() to fix it.
>
> Found by code review.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: d2c8ac187fc9 ("crypto: sa2ul - Add AEAD algorithm support")
> Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>
LGTM.

Reviewed-by: Kamlesh Gurudasani <kamlesh@xxxxxx>






[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux