[PATCH openEuler-1.0-LTS 12/62] phylib: fix potential use-after-free