]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: espintcp: save and call old ->sk_destruct
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 16 Apr 2020 15:45:44 +0000 (17:45 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 20 Apr 2020 05:34:16 +0000 (07:34 +0200)
commit53d61d31ade4c74022e4abf02b23c6781aeff2a7
treef89e5db8b18eab642e28545c3456cddefc937513
parent579c4e1ae7231d594ec094a7a37ceee904f73eb0
xfrm: espintcp: save and call old ->sk_destruct

When ESP encapsulation is enabled on a TCP socket, I'm replacing the
existing ->sk_destruct callback with espintcp_destruct. We still need to
call the old callback to perform the other cleanups when the socket is
destroyed. Save the old callback, and call it from espintcp_destruct.

Fixes: a601325e92f9 ("xfrm: add espintcp (RFC 8229)")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/espintcp.h
net/xfrm/espintcp.c