mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
commit1a6509d991("[IPSEC]: Add support for combined mode algorithms") introduced aead. The function attach_aead kmemdup()s the algorithm name during xfrm_state_construct(). However this memory is never freed. Implementation has since been slightly modified in commitee5c23176f("xfrm: Clone states properly on migration") without resolving this leak. This patch adds a kfree() call for the aead algorithm name. Fixes:1a6509d991("[IPSEC]: Add support for combined mode algorithms") Signed-off-by: Ilan Tayari <[email protected]> Acked-by: Rami Rosen <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>