]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ipv4: fix return value check in esp_remove_trailer
authorMa Ke <make_ruc2021@163.com>
Mon, 9 Oct 2023 01:13:37 +0000 (09:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:13:31 +0000 (11:13 +0200)
commitc593b6e934eeb076cabc2dd169bb80c7dcfc1fdc
treef0809b580a5599dfde6d6275a5bfb354ddc5ab86
parent849412179d78091d3fd4468c1d8bf97b282c74ad
net: ipv4: fix return value check in esp_remove_trailer

commit 513f61e2193350c7a345da98559b80f61aec4fa6 upstream.

In esp_remove_trailer(), to avoid an unexpected result returned by
pskb_trim, we should check the return value of pskb_trim().

Signed-off-by: Ma Ke <make_ruc2021@163.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/esp4.c