[PATCH v2 2/2] driver core: fix potential NULL pointer dereference in dev_uevent()