]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Oct 2020 23:54:30 +0000 (16:54 -0700)
commit555a73647aba5dadb8281d0b9dcb917fcd8648cc
treef27b41ad906ccff58161d616da8ef601c49a08b5
parentd0942aedeb2e742c87553682ecf9f49ca0c3637c
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: 91280cf7691a ("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