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