[PATCH 6.6 255/299] ipv6: sr: fix possible use-after-free and null-ptr-deref