greybus: connection: fix cport-id range
Fix cport-id allocation that failed to include the highest port id in the available cport-id range. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
d3d2af51f9
commit
39f36c8f9f
|
@ -219,7 +219,7 @@ struct gb_connection *gb_connection_create(struct gb_bundle *bundle,
|
|||
{
|
||||
return gb_connection_create_range(bundle->intf->hd, bundle,
|
||||
&bundle->dev, cport_id, protocol_id,
|
||||
0, bundle->intf->hd->num_cports - 1);
|
||||
0, bundle->intf->hd->num_cports);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue