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

Commit a0ba71ea authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ais: jpegdma: Fix for ASAN issues in jpegdma module"

parents 4d7dbd20 70383366
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -754,9 +754,12 @@ static int msm_jpegdma_s_fmt_vid_out(struct file *file,
static int msm_jpegdma_reqbufs(struct file *file,
	void *fh, struct v4l2_requestbuffers *req)
{
	int ret = 0;
	struct jpegdma_ctx *ctx = msm_jpegdma_ctx_from_fh(fh);

	return v4l2_m2m_reqbufs(file, ctx->m2m_ctx, req);
	mutex_lock(&ctx->lock);
	ret = v4l2_m2m_reqbufs(file, ctx->m2m_ctx, req);
	mutex_unlock(&ctx->lock);
	return ret;
}

/*
@@ -833,11 +836,11 @@ static int msm_jpegdma_streamoff(struct file *file,
{
	struct jpegdma_ctx *ctx = msm_jpegdma_ctx_from_fh(fh);
	int ret;

	mutex_lock(&ctx->lock);
	ret = v4l2_m2m_streamoff(file, ctx->m2m_ctx, buf_type);
	if (ret < 0)
		dev_err(ctx->jdma_device->dev, "Stream off fails\n");

	mutex_unlock(&ctx->lock);
	return ret;
}