Don't tftp to unknown flash
authorJochen Friedrich <jochen@scram.de>
Tue, 2 Sep 2008 09:24:59 +0000 (11:24 +0200)
committerBen Warren <biggerbadderben@gmail.com>
Wed, 3 Sep 2008 04:18:19 +0000 (21:18 -0700)
commitbe1b0d2777e179191a57b138b660547a17e55aad
tree59cb7bce221c6b381b76fd940b93c2c14fecc833
parent33314470ab32a3f5412bb61b5f3d6c216c88bf9b
Don't tftp to unknown flash

If a board has a variable number of flash banks, there are empty entries
in flash_info[] and CFG_DIRECT_FLASH_TFTP is set, tftp boot fails with
"Outside available Flash". This patch skips flash banks with unknown
flash ids.

Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
net/tftp.c