[PATCH 6.14 298/311] driver core: fix potential NULL pointer dereference in dev_uevent()