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

Commit f697ab3e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ba: avoid system crash in msm_ba_open()"

parents f79329e2 9d40f7f9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -812,6 +812,11 @@ void *msm_ba_open(const struct msm_ba_ext_ops *ext_ops)

	dev_ctxt = get_ba_dev();

	if (!dev_ctxt) {
		dprintk(BA_ERR, "Failed to get ba dev");
		return NULL;
	}

	inst = kzalloc(sizeof(*inst), GFP_KERNEL);

	if (!inst) {