diff options
author | Jamie Iles <[email protected]> | 2011-08-04 09:39:31 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2011-08-09 08:42:38 +0100 |
commit | bf912d99e94cd1f43a7decce2e9b79a3ca7f2418 (patch) | |
tree | 16a6ffb520d880cdc8662539d3369960e81cb5ba /net/lapb/lapb_timer.c | |
parent | 7760d54600a3d6206551c12eb53931ce7369d424 (diff) |
ARM: 7010/1: mm: fix invalid loop for poison_init_mem
poison_init_mem() used a loop of:
while ((count = count - 4))
which has 2 problems - an off by one error so that we do one less word
than we should, and the other is that if count == 0 then we loop forever
and poison too much. On a platform with HAVE_TCM=y but nothing in the
TCM's, this caused corruption and the platform failed to boot.
Acked-by: Stephen Boyd <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Signed-off-by: Jamie Iles <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions