Commit 1f33564f authored by Tony Truong's avatar Tony Truong
Browse files

net: qrtr: get svc_id before queueing sk_buff



In qrtr_endpoint_post, getting svc_id based on sk_buff->cb after sk_buff
has been queued to the endpoint leads to a potential use-after-free
scenario. To avoid this race condition, get the service ID via
sk_buff->cb before queueing the sk_buff.

Change-Id: I53205fdffc08fd6dc48fd158c7fe5966f38aa978
Signed-off-by: default avatarTony Truong <quic_truong@quicinc.com>
parent cd16df03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment