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

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

Merge "PM / devfreq: Allocate memory using the right data type"

parents 1f926e57 dc65a54d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -505,7 +505,8 @@ struct devfreq *devfreq_add_device(struct device *dev,
						devfreq->profile->max_state *
						devfreq->profile->max_state,
						GFP_KERNEL);
	devfreq->time_in_state = devm_kzalloc(dev, sizeof(unsigned int) *
	devfreq->time_in_state = devm_kzalloc(dev,
					sizeof(*(devfreq->time_in_state)) *
					devfreq->profile->max_state,
					GFP_KERNEL);
	devfreq->last_stat_updated = jiffies;