[PATCH 4.19 40/86] phylib: fix potential use-after-free