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

Commit 970346ce authored by VijayaKumar T M's avatar VijayaKumar T M
Browse files

msm: ispif: fix device crash during dumping io register



Check whether ispif->base is null before dumping

CRs-Fixed: 2046207
Change-Id: Ia34b9ca23123f6953bf7dbf6c098b481bed42b11
Signed-off-by: default avatarHaibin Liu <haibinl@codeaurora.org>
Signed-off-by: default avatarVijayaKumar T M <vtmuni@codeaurora.org>
parent bfd96c27
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -54,6 +54,12 @@ 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);
}