[PATCH 6.17 378/563] smc: Fix use-after-free in __pnet_find_base_ndev().