Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f6aef8f authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: u_bam_data: Fix bam2bam_ipa port related check



Commit c6079f4e ("USB: f_mbim: Add support for BAM-DMUX transport")
has moved creating bam2bam_data_port for MBIM function from mbim_init()
to mbim_bind_config() which fails check of port_num against
n_bam2bam_data_ports while moving to RNDIS USB composition. Fix this
issue by avoiding check of port_num against n_bam2bam_data_ports as
u_bam_data_func_to_port() is already taking care of checking upper bound
for port number.

CRs-Fixed: 905382
Change-Id: I0d42a0f9a3592dff5db9a060b901c3f6070106e3
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 9fffca4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment