[PATCH 4.9 003/218] netdevice: add the case if dev is NULL