-
由 Colin Ian King 提交于
The return from of_count_phandle_with_args can be negative, so we should avoid kcalloc of a negative count of genpd_power_stat structs by sanity checking if count is zero or less. Signed-off-by: NColin Ian King <colin.king@canonical.com> Acked-by: NKevin Hilman <khilman@baylibre.com> Acked-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
a1fee00d