[PATCH 6.12 250/280] driver core: fix potential NULL pointer dereference in dev_uevent()