[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:
Robert Jarzmik 2008-05-02 21:17:06 +01:00 • committed by Russell King
commit 649de51b88
6 changed files with 17 additions and 23 deletions

View file

@ -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);