]> 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:58:56 +0000 (11:58 +0200)
commita9651e66d0bd785197b7055c0e41029dfb2ec955
tree9573c6170327544803a5820b258f62100a15dbe8
parent26a3c734cb8a0ce0adda1dfd5b7bdaf2c60298a2
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