[PATCH 5.15 310/567] drivers: base: transport_class: fix resource leak when transport_add_device() fails