[PATCH OLK-6.6 2/2] [Backport] driver core: fix potential NULL pointer dereference in dev_uevent()