Stephen Warren 78b2de802f env_nand: fix incorrect size parameter to ALLOC_CACHE_ALIGN_BUFFER
The third parameter to ALLOC_CACHE_ALIGN_BUFFER is not size (as named),
but rather count (number of elements of the type to allocate). The
current code ends up allocating one copy of env_t for each byte in its
size, which quite possibly ends up overflowing RAM.

This fixes a bug in commit 3801a15 "env_nand: align NAND buffers".

Reported-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reported-by: Prabhakar Lad <prabhakar.lad@ti.com>
2012-09-18 12:01:51 -07:00
..
2011-10-22 01:22:21 +02:00
2012-03-26 11:00:31 +02:00
2011-07-28 16:41:06 +02:00
2012-09-05 17:32:42 -05:00
2012-06-21 20:53:09 +02:00
2012-03-27 22:05:28 +02:00
2012-05-20 08:32:32 +02:00
2011-07-28 17:22:53 +02:00
2011-10-22 01:13:35 +02:00
2012-08-09 23:39:18 +02:00
2012-08-09 23:42:20 +02:00
2011-12-07 08:41:22 +01:00
2012-07-10 11:35:38 +02:00
2011-10-22 01:13:35 +02:00
2011-12-05 22:48:10 +01:00
2011-09-04 23:27:52 +02:00
2011-10-26 21:33:42 +02:00
2012-05-20 08:32:32 +02:00