[PATCH 6.1 159/195] ipv6: sr: fix possible use-after-free and null-ptr-deref