[PATCH 5.10 108/122] ipv6: sr: fix possible use-after-free and null-ptr-deref