[PATCH 4.19 45/52] ipv6: sr: fix possible use-after-free and null-ptr-deref