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

Commit e5860292 authored by Ruofei Ma's avatar Ruofei Ma
Browse files

msm: cvp: Fix debug message crash issue



Fix an issue in debug message that has potential NULL pointer dereference

Change-Id: I6f8183cf48c85e90632beb8d4eeb6b1133afc533
Signed-off-by: default avatarRuofei Ma <ruofeim@codeaurora.org>
parent eca47d45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -420,9 +420,9 @@ static int msm_cvp_map_buf_user_persist(struct msm_cvp_inst *inst,
	rc = msm_cvp_smem_map_dma_buf(inst, &cbuf->smem);
	if (rc) {
		dprintk(CVP_ERR,
		"%s: %x : fd %d %s size %d",
		"%s: %x : fd %d size %d",
		"map persist failed", hash32_ptr(inst->session), cbuf->smem.fd,
		cbuf->smem.dma_buf->name, cbuf->smem.size);
		cbuf->smem.size);
		goto exit;
	}