[PATCH 5.4 74/84] ipv6: sr: fix possible use-after-free and null-ptr-deref