Commit fe4c0e54 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: ap: clean up svc link management error path

Return immediately on bundle-init failure when processing SVC link up.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 69bae891
......@@ -149,11 +149,13 @@ static void svc_management(struct svc_function_unipro_management *management,
ret = gb_bundle_init(intf,
management->link_up.interface_id,
management->link_up.device_id);
if (ret)
if (ret) {
dev_err(hd->parent,
"error %d initializing interface %hhu bundle %hhu\n",
ret, management->link_up.module_id,
management->link_up.interface_id);
return;
}
break;
default:
dev_err(hd->parent, "Unhandled UniPro management message\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment