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

Commit f121be56 authored by Rahul Sharma's avatar Rahul Sharma Committed by Gerrit - the friendly Code Review server
Browse files

msm: ais: fix crash during dumping io register



Check whether ispif->base is null before dumping.

Change-Id: I7d9738d5361052b01a5e4a205d9f18a9e36b64bd
CRs-Fixed: 2046207
Signed-off-by: default avatarRahul Sharma <sharah@codeaurora.org>
parent eb61a053
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -69,6 +69,11 @@ static void msm_ispif_io_dump_reg(struct ispif_device *ispif)
{
	if (!ispif->enb_dump_reg)
		return;
	if (!ispif->base) {
		pr_err("%s: null pointer for the ispif base\n", __func__);
		return;
	}

	msm_camera_io_dump(ispif->base, 0x250, 0);
}