[PATCH 5.4 291/328] rapidio: fix an API misues when rio_add_net() fails