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

Commit 63dd11f3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: add check for memory allocation"

parents c4235f7f a27ec19d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1241,8 +1241,9 @@ static int dp_display_usbpd_disconnect_cb(struct device *dev)
	if (!dp->debug->sim_mode && !dp->parser->no_aux_switch
	    && !dp->parser->gpio_aux_switch)
		dp->aux->aux_switch(dp->aux, false, ORIENTATION_NONE);
end:

	SDE_EVT32_EXTERNAL(SDE_EVTLOG_FUNC_EXIT, dp->state);
end:
	return rc;
}

+3 −0
Original line number Diff line number Diff line
@@ -129,6 +129,9 @@ static int msm_notifier_probe(struct platform_device *pdev)

	active_displays = devm_kzalloc(&pdev->dev,
				sizeof(*active_displays), GFP_KERNEL);
	if (!active_displays)
		return -ENOMEM;

	INIT_LIST_HEAD(&active_displays->list);

	/* Set default max fps to 0 */