[PATCH 5.4.y 5.10.y 4/4] ipv6: fix possible UAF in ip6_finish_output2()