[PATCH 6.1 412/885] driver core: fix potential null-ptr-deref in device_add()