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

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

Merge "power: qpnp-bms: Fix memory leak"

parents cddcfc04 62a3df27
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3548,6 +3548,9 @@ static int set_battery_data(struct qpnp_bms_chip *chip)
	if (batt_data->iterm_ua >= 0 && dt_data)
		chip->chg_term_ua = batt_data->iterm_ua;

	if (dt_data)
		kfree(batt_data);

	if (chip->pc_temp_ocv_lut == NULL) {
		pr_err("temp ocv lut table is NULL\n");
		return -EINVAL;