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

Commit 9a1418f9 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-fg: fix NULL pointer dereference in soft JEITA handler"

parents cc8f9004 92537a5a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4998,6 +4998,9 @@ static irqreturn_t fg_jeita_soft_hot_irq_handler(int irq, void *_chip)
	bool batt_warm;
	union power_supply_propval val = {0, };

	if (!is_charger_available(chip))
		return IRQ_HANDLED;

	rc = fg_read(chip, &regval, INT_RT_STS(chip->batt_base), 1);
	if (rc) {
		pr_err("spmi read failed: addr=%03X, rc=%d\n",
@@ -5041,6 +5044,9 @@ static irqreturn_t fg_jeita_soft_cold_irq_handler(int irq, void *_chip)
	bool batt_cool;
	union power_supply_propval val = {0, };

	if (!is_charger_available(chip))
		return IRQ_HANDLED;

	rc = fg_read(chip, &regval, INT_RT_STS(chip->batt_base), 1);
	if (rc) {
		pr_err("spmi read failed: addr=%03X, rc=%d\n",