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

Commit 9179ec48 authored by Santosh Mardi's avatar Santosh Mardi
Browse files

devfreq: check return value of operating point property



Check return value for success of operating point property
from the dt node.

Change-Id: I7c6c8efc2cf1241c6389a868788683b89aac77d4
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent b9ca5433
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;