From: Viresh Kumar Date: Thu, 4 Sep 2014 12:01:23 +0000 (+0530) Subject: power-supply: Return early if "power-supplies" property isn't valid X-Git-Tag: fixes-against-v3.18-rc2~70^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c85486c4ae8fd56770340bd9c16a61127c96e1;p=pandora-kernel.git power-supply: Return early if "power-supplies" property isn't valid If power-supply's DT node doesn't have a valid "power-supplies" entry, then power_supply_check_supplies() should return early instead of trying to allocate memory for "supplied_from" array. Signed-off-by: Viresh Kumar Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed