]> git.itanic.dy.fi Git - linux-stable/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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Oct 2020 23:54:30 +0000 (16:54 -0700)
commit6daa1da4e262b0cd52ef0acc1989ff22b5540264
treef27b41ad906ccff58161d616da8ef601c49a08b5
parent28e9dcd9172028263c8225c15c4e329e08475e89
chelsio/chtls: fix memory leaks in CPL handlers

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>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c