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

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

Merge "msm: mdss: reset the skip buffer flag to avoid memory leak"

parents 77da0def 86e5031a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1035,6 +1035,7 @@ static int mdss_mdp_get_img(struct msmfb_data *img,
		data->addr = 0;
		data->len = 0;
		data->mapped = false;
		data->skip_detach = false;
		/* return early, mapping will be done later */

		return 0;
@@ -1151,7 +1152,7 @@ int mdss_mdp_data_map(struct mdss_mdp_data *data, bool rotator, int dir)
{
	int i, rc = 0;

	if (!data || !data->num_planes)
	if (!data || !data->num_planes || data->num_planes > MAX_PLANES)
		return -EINVAL;

	for (i = 0; i < data->num_planes; i++) {