diff options
author | javier Martin <javier.martin@vista-silicon.com> | 2009-10-29 08:22:43 +0100 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-11-11 13:27:09 -0800 |
commit | 651ef90fa6ca824c8e581aeef9e04bbbe7f7e9ce (patch) | |
tree | 3b286703c38e68298cabe6bf15df6faa08d554f5 /board/nc650/flash.c | |
parent | e8f1546a88b4ade6a910c4a7958a774ee1b40023 (diff) | |
download | u-boot-imx-651ef90fa6ca824c8e581aeef9e04bbbe7f7e9ce.zip u-boot-imx-651ef90fa6ca824c8e581aeef9e04bbbe7f7e9ce.tar.gz u-boot-imx-651ef90fa6ca824c8e581aeef9e04bbbe7f7e9ce.tar.bz2 |
mxc_fec: avoid free() calls to already freed pointers.
Sometimes, inside NetLoop, eth_halt() is called before eth_init() has
been called. This is harmless except for free() calls to pointers
which have not been allocated yet.
This patch initializes those pointers to NULL and allocates them only
the first time. This way we can get rid of free calls in halt callback.
This has been tested in i.MX27 Litekit board and eldk-4.2 toolchains.
Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'board/nc650/flash.c')
0 files changed, 0 insertions, 0 deletions