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

Commit 4646efa1 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "devfreq: check return value of operating point property"

parents eb3b11db 9179ec48
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -112,6 +112,8 @@ static int add_opp_prop_from_child(struct device *dev,
	const void *p_val;

	p_val = of_get_property(of_child, PROP_OPERATING_POINTS_V2, &len);
	if (!p_val)
		return -ENODEV;
	value = devm_kzalloc(dev, len, GFP_KERNEL);
	if (!value)
		return -ENOMEM;