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

Commit 66ce9604 authored by Maria Yu's avatar Maria Yu Committed by Gerrit - the friendly Code Review server
Browse files

drivers: qcom: rpmh: Fix NULL pointer issue in msm_bus_commit_data



Checked added for cur_rsc in the beginning of msm_bus_commit_data
to avoid NULL pointer dereference issue.

Change-Id: I6c1cec9707b9c1843db4b4c86b4881a09ef6b41c
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent 50b9a890
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -550,6 +550,11 @@ int msm_bus_commit_data(struct list_head *clist)
		bcm_clist_add(node);
	}

	if (!cur_rsc) {
		MSM_BUS_ERR("%s: Error for cur_rsc is NULL.\n", __func__);
		return ret;
	}

	cur_mbox = cur_rsc->rscdev->mbox;
	cur_bcm_clist = cur_rsc->rscdev->bcm_clist;