[PATCH 6.2 0524/1001] driver core: fix resource leak in device_add()