wakeup: Add the guard condition for len in pm_get_active_wakeup_sources
authorRuchi Kandoi <kandoiruchi@google.com>
Tue, 10 Nov 2015 18:53:55 +0000 (10:53 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:24 +0000 (13:54 -0800)
commit594354108648b4e58810a87b3539fec31bda903b
tree660d566e7b3c84e30d54669e36be8c7a26833d11
parentaa29c32d396b6e7cf9192e607760fa1d6a56cc21
wakeup: Add the guard condition for len in pm_get_active_wakeup_sources

Check if the len is not greater than maximum to prevent buffer overflow.

Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Change-Id: I575b0a72bb5448b68353408d71fa8b83420c9088
drivers/base/power/wakeup.c