summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_apd.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-04-16 14:50:03 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-26 21:11:35 +0200
commit0b26985a7d76645598d98fec6922ddd1ec8cbc55 (patch)
tree9fdfa733c6d65517effd170a645349a8f5f52221 /drivers/acpi/acpi_apd.c
parentLinux 4.6-rc5 (diff)
downloadlinux-0b26985a7d76645598d98fec6922ddd1ec8cbc55.tar.xz
linux-0b26985a7d76645598d98fec6922ddd1ec8cbc55.zip
PM / clk: ensure we don't allocate a -ve size of count clks
It is entirely possible for of_count_phandle_wit_args to return a -ve error return value so we need to check for this otherwise we end up allocating a negative number of clk objects. Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_apd.c')
0 files changed, 0 insertions, 0 deletions