[PATCH openEuler-1.0-LTS] ipv6: sr: fix possible use-after-free and null-ptr-deref