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

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

Merge "USB: phy: msm: Fix out of bound access"

parents 94a325a1 f8fe610d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3623,6 +3623,9 @@ static int otg_power_set_property_usb(struct power_supply *psy,
				motg->chg_type, psy->type);
		break;
	case POWER_SUPPLY_PROP_HEALTH:
		if (val->intval > POWER_SUPPLY_HEALTH_HOT)
			motg->usbin_health = 0;
		else
			motg->usbin_health = val->intval;
		break;
	default: