]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ip6_finish_output2: set sk into newly allocated nskb
authorVasily Averin <vvs@virtuozzo.com>
Mon, 19 Jul 2021 07:55:14 +0000 (10:55 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Jul 2021 09:52:36 +0000 (11:52 +0200)
commit2d85a1b31dde84038ea07ad825c3d8d3e71f4344
treebf8dd1c6812e6ccde4c4c47d97ae5ab438318ddc
parent6f20c8adb1813467ea52c1296d52c4e95978cb2f
ipv6: ip6_finish_output2: set sk into newly allocated nskb

skb_set_owner_w() should set sk not to old skb but to new nskb.

Fixes: 5796015fa968 ("ipv6: allocate enough headroom in ip6_finish_output2()")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Link: https://lore.kernel.org/r/70c0744f-89ae-1869-7e3e-4fa292158f4b@virtuozzo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6_output.c