[PATCH 6.2 0527/1001] drivers: base: transport_class: fix resource leak when transport_add_device() fails