[PATCH 5.15 279/567] driver core: fix potential null-ptr-deref in device_add()