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

Commit 3e06d8e1 authored by Senthil kumar Rajagopal's avatar Senthil kumar Rajagopal
Browse files

msm: isp: Adds debug message null check



Adds the null check for isp_buf_mgr the buffer in page fault
debugging messages. If the null check was not there,
it may lead to crash.

Change-Id: Iedb2d88f341c4089d4e7a7fdbc6fea86a61b87ba
Signed-off-by: default avatarSenthil kumar Rajagopal <skrajago@codeaurora.org>
parent 00537d83
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1039,6 +1039,11 @@ int msm_isp_buf_mgr_debug(struct msm_isp_buf_mgr *buf_mgr)
				buf_mgr->bufq[i].buf_type);
			for (j = 0; j < buf_mgr->bufq[i].num_bufs; j++) {
				bufs = &buf_mgr->bufq[i].bufs[j];
				if (!bufs) {
					pr_err("bufs at %d is NULL breaking\n",
						j);
					break;
				}
				pr_err("%s:%d buf_idx %d, frame_id %d,",
					__func__, j, bufs->buf_idx,
					bufs->frame_id);