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:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment