Merge "msm: ADSPRPC: Null check for file session context"
This commit is contained in:
commit
04faf39d38
1 changed files with 6 additions and 0 deletions
|
@ -1435,6 +1435,12 @@ static int fastrpc_internal_invoke(struct fastrpc_file *fl, uint32_t mode,
|
|||
int err = 0;
|
||||
struct timespec invoket;
|
||||
|
||||
VERIFY(err, fl->sctx);
|
||||
if (err)
|
||||
goto bail;
|
||||
VERIFY(err, fl->cid >= 0 && fl->cid < NUM_CHANNELS);
|
||||
if (err)
|
||||
goto bail;
|
||||
if (fl->profile)
|
||||
getnstimeofday(&invoket);
|
||||
if (!kernel) {
|
||||
|
|
Loading…
Add table
Reference in a new issue