]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: use skb_expand_head in ip6_finish_output2
authorVasily Averin <vvs@virtuozzo.com>
Wed, 25 Dec 2024 05:16:22 +0000 (21:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:24:59 +0000 (13:24 +0100)
commit4132c4ad00ddbf3a175ea0d2c775b662a32f4c85
tree72516e9743d6d911dfe2093693d04239eba3c0d9
parent23f95bbe72506f8ccb95c4f579e6c2570cebfc0f
ipv6: use skb_expand_head in ip6_finish_output2

[ Upstream commit e415ed3a4b8b246ee5e9d109ff5153efcf96b9f2 ]

Unlike skb_realloc_headroom, new helper skb_expand_head does not allocate
a new skb if possible.

Additionally this patch replaces commonly used dereferencing with variables.

Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e415ed3a4b8b246ee5e9d109ff5153efcf96b9f2)
Signed-off-by: Harshvardhan Jha <harshvardhan.j.jha@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ip6_output.c