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

Skip to content
Commit 5e9759ac authored by Mayank Rana's avatar Mayank Rana
Browse files

u_bam_data: Fix memory corruption and rx_reqs allocation



In some cases, memory corruption was seen due to use after free
and double free with usage of rx_reqs. This change allocates
rx_reqs and required resources for SYS2BAM case from
bam2bam_connect_work() context and release on
bam_data_disconnect(). It also adds protection for all list
operations with rx.idle request lists and SKB pool.

Also add counter for allocated rx_reqs.

CRs-Fixed: 714696
Change-Id: I00c721aaed9538249ff98272e9b10b4329cce63c
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent f19ef0f6
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