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

Commit 8a3fd548 authored by Petar Sivenov's avatar Petar Sivenov
Browse files

msm: camera: isp: Fix dereferencing of NULL pointer



A local pointer is initialized to NULL and can be dereferenced
immediately after that. This patch sets pointer with proper value
before use.

Change-Id: I4b02adb7685cba133644e604cbcfdfd42d248190
Signed-off-by: default avatarPetar Sivenov <psiven@codeaurora.org>
parent f0778b70
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -594,6 +594,7 @@ static int msm_isp_buf_enqueue(struct msm_isp_buf_mgr *buf_mgr,
			rc = msm_isp_put_buf(buf_mgr,
				info->handle, info->buf_idx);
		} else {
			bufq = msm_isp_get_bufq(buf_mgr, info->handle);
			if (BUF_SRC(bufq->stream_id))
				pr_err("%s: Invalid native buffer state\n",
					__func__);