| a430b137 | 07-Dec-2010 |
Lei Wen <leiwen@marvell.com> |
onenand: fix oob print out issue
Seems original implementation forget to set the pointer to point to the oobbuf, so when we want to see oob buf, we see nothing... Fix it by get pointer as the oobbuf
onenand: fix oob print out issue
Seems original implementation forget to set the pointer to point to the oobbuf, so when we want to see oob buf, we see nothing... Fix it by get pointer as the oobbuf set.
Signed-off-by: Lei Wen <leiwen@marvell.com>
show more ...
|
| 722b061b | 20-Oct-2010 |
Mike Frysinger <vapier@gentoo.org> |
autocomplete: remove runtime handler install
Rather than add runtime overhead of installing completion handlers, do it statically at build time. This requires a new build time helper macro to decla
autocomplete: remove runtime handler install
Rather than add runtime overhead of installing completion handlers, do it statically at build time. This requires a new build time helper macro to declare a command and the completion handler at the same time. Then we convert the env related funcs over to this.
This gives an opportunity to also unify the U_BOOT_CMD macros.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 0d302af0 | 25-Nov-2010 |
Thomas Weber <weber@corscience.de> |
common/cmd_nvedit: Use return value of cmd_usage
Use the return value of cmd_usage instead of ignoring this and returning a 1.
Signed-off-by: Thomas Weber <weber@corscience.de> Acked-by: Mike Frysi
common/cmd_nvedit: Use return value of cmd_usage
Use the return value of cmd_usage instead of ignoring this and returning a 1.
Signed-off-by: Thomas Weber <weber@corscience.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 7013c061 | 24-Nov-2010 |
Thomas Weber <weber@corscience.de> |
Common/command: Guard strchr/strlen from NULL pointer
Guard strchr/strlen from being called with NULL pointer. This line is crashing when command "env" is called without subcommand.
The cmd is NULL
Common/command: Guard strchr/strlen from NULL pointer
Guard strchr/strlen from being called with NULL pointer. This line is crashing when command "env" is called without subcommand.
The cmd is NULL in this case because the calling function "do_env" decremented the argc without checking if there are still arguments available.
Signed-off-by: Thomas Weber <weber@corscience.de>
show more ...
|
| 6163f5b4 | 16-Nov-2010 |
Kumar Gala <galak@kernel.crashing.org> |
malloc: Fix issue with calloc memory possibly being non-zero
Since we set #define MORECORE_CLEARS 1, the code assumes 'sbrk' always returns zero'd out memory. However since its possible that free()
malloc: Fix issue with calloc memory possibly being non-zero
Since we set #define MORECORE_CLEARS 1, the code assumes 'sbrk' always returns zero'd out memory. However since its possible that free() returns memory back to sbrk() via malloc_trim we could possible get non-zero'd memory from sbrk(). This is a problem for when code might call calloc() and expect the memory to have been zero'd out.
There are two possible solutions to this problem. 1. change #define MORECORE_CLEARS 0 2. memset to zero memory returned to sbrk.
We go with the second since the sbrk being called to free up memory should be pretty rare.
The following code problems an example test to show the issue. This test code was inserted right after the call to mem_malloc_init().
... u8 *p2; int i;
printf("MALLOC TEST\n"); p1 = malloc(135176); printf("P1 = %p\n", p1); memset(p1, 0xab, 135176);
free(p1); p2 = calloc(4097, 1); printf("P2 = %p %p\n", p2, p2 + 4097);
for (i = 0; i < 4097; i++) { if (p2[i] != 0) printf("miscompare at byte %d got %x\n", i, p2[i]);
free(p2); printf("END MALLOC TEST\n\n"); ...
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Tested-by: Wolfgang Denk <wd@denx.de>
show more ...
|