Skip to content

Commit 1305f2b

Browse files
Wei Yongjungregkh
authored andcommitted
greybus: es2: fix error return code in ap_probe()
Fix to return a negative error code from the es2_arpc_in_enable() error handling case instead of 0, as done elsewhere in this function. Fixes: 9d9d377 ("greybus: es2: Add a new bulk in endpoint for APBridgeA RPC") Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 25633d1 commit 1305f2b

File tree

1 file changed

+2
-1
lines changed
  • drivers/staging/greybus

1 file changed

+2
-1
lines changed

drivers/staging/greybus/es2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,8 @@ static int ap_probe(struct usb_interface *interface,
15481548
INIT_LIST_HEAD(&es2->arpcs);
15491549
spin_lock_init(&es2->arpc_lock);
15501550

1551-
if (es2_arpc_in_enable(es2))
1551+
retval = es2_arpc_in_enable(es2);
1552+
if (retval)
15521553
goto error;
15531554

15541555
retval = gb_hd_add(hd);

0 commit comments

Comments
 (0)