From be1b0d2777e179191a57b138b660547a17e55aad Mon Sep 17 00:00:00 2001 From: Jochen Friedrich Date: Tue, 2 Sep 2008 11:24:59 +0200 Subject: 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 Signed-off-by: Ben Warren --- net/tftp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/tftp.c') diff --git a/net/tftp.c b/net/tftp.c index 84d83ca97b..9aeecb8d37 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -111,6 +111,8 @@ store_block (unsigned block, uchar * src, unsigned len) for (i=0; i= flash_info[i].start[0]) { rc = 1; break; -- cgit v1.2.1