msm: adsprpc: Fail set session info on subsequent calls
Currently there is no check if set session info is invoked multiple times. Multiple calls to session info leaks memory and process identifiers. Fail set session info on subsequent calls. Change-Id: I2072add44ce2a9c4c4ff544f8e568eeccc1220cf Signed-off-by: Himateja Reddy <quic_hmreddy@quicinc.com> (cherry picked from commit 1a5889127e7b0ff6974e50d762708bc2ef2d3a6c)
This commit is contained in:

committed by
Anirudh Raghavendra

parent
bed0667a56
commit
c16622ebe5
@@ -923,6 +923,8 @@ struct fastrpc_file {
|
||||
struct fastrpc_proc_sharedbuf_info sharedbuf_info;
|
||||
/* Flag to indicate 4 session support available */
|
||||
bool multi_session_support;
|
||||
/* Flag to indicate session info is set */
|
||||
bool set_session_info;
|
||||
};
|
||||
|
||||
int fastrpc_internal_invoke(struct fastrpc_file *fl, uint32_t mode,
|
||||
|
Reference in New Issue
Block a user