[PATCH OLK-5.10] driver core: fix potential null-ptr-deref in device_add()