greybus: ap: clean up svc link management error path

Return immediately on bundle-init failure when processing SVC link up.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Johan Hovold 2015-03-19 16:46:16 +01:00 committed by Greg Kroah-Hartman
parent 69bae8910e
commit fe4c0e548a
1 changed files with 3 additions and 1 deletions

View File

@ -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");