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

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

Merge "msm: vidc: Free the un-managed memory allocated in probe"

parents 54f503d7 f1e33a7c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -114,9 +114,13 @@ static inline void msm_vidc_free_regulator_table(
		struct regulator_info *rinfo =
			&res->regulator_set.regulator_tbl[c];

		kfree(rinfo->name);
		rinfo->name = NULL;
	}

	/* The regulator table is one the few allocs that aren't managed, hence
	 * free it manually */
	kfree(res->regulator_set.regulator_tbl);
	res->regulator_set.regulator_tbl = NULL;
	res->regulator_set.count = 0;
}