mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[ARM] 5027/1: Fixed random memory corruption on pxa suspend cycle.
Each time a pxa type cpu went in suspend, a portion of
kmalloc memory was corrupted.
The issue was an incorrect length allocation introduced by
the commit 711be5ccfe for
the save registers array (=> overflow).
Signed-off-by: Robert Jarzmik <[email protected]>
Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
c8df9a53e8
commit
649de51b88
6 changed files with 17 additions and 23 deletions
|
|
@ -10,7 +10,7 @@
|
|||
#include <linux/suspend.h>
|
||||
|
||||
struct pxa_cpu_pm_fns {
|
||||
int save_size;
|
||||
int save_count;
|
||||
void (*save)(unsigned long *);
|
||||
void (*restore)(unsigned long *);
|
||||
int (*valid)(suspend_state_t state);
|
||||
|
|
|
|||
Loading…
Reference in a new issue