diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-10-25 17:33:27 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-10-27 13:00:32 +0200 |
commit | a1fee00dc95644e0590b4f1a3755c9f6b1243b3a (patch) | |
tree | 45cf5b081069f6cba6cde94dac3500face44b25e /crypto/tea.c | |
parent | 411bf2a8db76d7ed6f710df77121e5113ee8fe64 (diff) |
PM / Domains: check for negative return from of_count_phandle_with_args()
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: Colin Ian King <colin.king@canonical.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'crypto/tea.c')
0 files changed, 0 insertions, 0 deletions