Skip to content

Commit

Permalink
ibacm: Fix bug in acm_get_ep()
Browse files Browse the repository at this point in the history
Commit 26e05f8 ("ibacm: use ccan/list.h") introduced a bug in
acm_get_ep() by not incrementing inx.

Fixes: 26e05f8 ("ibacm: use ccan/list.h")
Signed-off-by: Håkon Bugge <[email protected]>
  • Loading branch information
Hakon-Bugge committed Feb 5, 2020
1 parent bcd76b2 commit fdde742
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ibacm/src/acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ static struct acmc_ep *acm_get_ep(int index, uint8_t port_num)
list_for_each(&dev->port[i].ep_list, ep, entry) {
if (index == inx)
return ep;
++inx;
}
}
}
Expand Down

0 comments on commit fdde742

Please sign in to comment.