[PATCH openEuler-5.10 5/6] netdevice: add the case if dev is NULL