diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-09-03 20:13:53 +0300 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-09-03 20:13:53 +0300 |
commit | 5d113262ee9e074e0d36362d878892819bfdeb47 (patch) | |
tree | d9cf88995c4a672ace8725518d4f1984350a9e26 /arch/arm/mach-omap2/sleep34xx.S | |
parent | 36d568ec055cb3ac4507d38ebabba955cdbb443e (diff) | |
download | talos-op-linux-5d113262ee9e074e0d36362d878892819bfdeb47.tar.gz talos-op-linux-5d113262ee9e074e0d36362d878892819bfdeb47.zip |
OMAP: powerdomain: Fix overflow when doing powerdomain deps lookups.
At the end of the list pd is a pointer to a NULL struct, so checking
if the address == NULL doesn't help here. In fact the original code
will just keep running past the struct to read who knows what in
memory.
This case manifests itself when from clkdms_setup() when enabling auto
idle for a clock domain and the clockdomain usecount is greater than
0. When _clkdm_add_autodeps() tries to add the a dependency that does
not exist in the powerdomain->wkdep_srcs array the for loop will run
past the wkdep_srcs array.
Currently in linux-omap you won't hit this because the not found case
is never executed, unless you start modifying powerdomains and their
wakeup/sleep deps.
Signed-off-by: Mike Chan <mike@android.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/sleep34xx.S')
0 files changed, 0 insertions, 0 deletions