]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
chelsio/chtls: fix memory leaks in CPL handlers
authorVinay Kumar Yadav <vinay.yadav@chelsio.com>
Sun, 25 Oct 2020 19:42:29 +0000 (01:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:08:32 +0000 (11:08 +0100)
commitdf2e825b3af547458df24846b00ed3e650c3610c
treeb6745ff0d7ebe984a312b0f841c09fd95139f4ba
parentf9dcae22d40c195425cdeba16618b6c9c60886e4
chelsio/chtls: fix memory leaks in CPL handlers

[ Upstream commit 6daa1da4e262b0cd52ef0acc1989ff22b5540264 ]

CPL handler functions chtls_pass_open_rpl() and
chtls_close_listsrv_rpl() should return CPL_RET_BUF_DONE
so that caller function will do skb free to avoid leak.

Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition")
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Link: https://lore.kernel.org/r/20201025194228.31271-1-vinay.yadav@chelsio.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/chelsio/chtls/chtls_cm.c