msm: adsprpc: Prevent use after free in fastrpc_invoke_send
In some async scenarios, the message context might be freed by the async response thread before the user thread updates the txmsg buffer. This leads to a use after free scenario. Prevent this from happening by copying message to a temporary variable and using this temporary variable. Change-Id: I181eb5c6e1a6bdc2437f974d5f514d8fdfefcc9f Acked-by:Ranjith Goud Namala <rnamala@qti.qualcomm.com> Signed-off-by:
rnamala <quic_rnamala@quicinc.com>
Loading
Please register or sign in to comment