Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60c110ac authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: check for fastrpc session ctx initialization"

parents 581a648d 9900d61a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1386,6 +1386,11 @@ static int fastrpc_buf_alloc(struct fastrpc_file *fl, size_t size,
	int err = 0, vmid;
	struct fastrpc_buf *buf = NULL;

	VERIFY(err, fl->sctx != NULL);
	if (err) {
		err = -EBADR;
		goto bail;
	}
	VERIFY(err, size > 0 && fl->sctx->smmu.dev);
	if (err) {
		err = (fl->sctx->smmu.dev == NULL) ? -ENODEV : err;