[PATCH AUTOSEL 5.4 052/130] net: dsa: avoid potential use-after-free error