[PATCH openEuler-22.03-LTS-SP1] net: hsr: Fix potential use-after-free