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]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux