soc: qcom: glink: Fix use after free race
If enabled, the glink tracer framework logs the timestamp of when a packet
is queued for transmit. However, the check to determine if the event
should be logged is done after the critical section where the packet is
queued, and accesses structures that are no longer safe to access. This
leads to a race where the structures could be used after they are freed.
Move the tracer event check into the critical section to eliminate the
race.
CRs-Fixed: 868186
Change-Id: Ib2b1fd0d393536ace078a547997194f89c611d4d
Signed-off-by:
Jeffrey Hugo <jhugo@codeaurora.org>
Loading
Please register or sign in to comment