ipv6: sr: some followup fixes
JIRA: https://issues.redhat.com/browse/RHEL-37511
These are some follow-up fixes for 5559cea2d5aa ("ipv6: sr: fix possible use-after-free and null-ptr-deref")
Signed-off-by: Hangbin Liu haliu@redhat.com
Edited by Hangbin Liu