Merge "msm: ADSPRPC: Null check for file session context"

This commit is contained in:
Linux Build Service Account 2017-03-21 05:00:49 -07:00 committed by Gerrit - the friendly Code Review server
commit 04faf39d38

View file

@ -1435,6 +1435,12 @@ static int fastrpc_internal_invoke(struct fastrpc_file *fl, uint32_t mode,
int err = 0; int err = 0;
struct timespec invoket; 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) if (fl->profile)
getnstimeofday(&invoket); getnstimeofday(&invoket);
if (!kernel) { if (!kernel) {