app: fastboot: Use the correct length to invalidate cache

With write back caches enabled the memory passed to usb driver should be
invalidated. The current implementation passes the length as
"download_size" which is size of the previous image downloaded through
USB and gets set after the image is download is complete. If the size of
new image being downloaded is greater than previous image then using
"download_size" to invalidate would result in the corruption of new
image and prevents device from boot up. Instead use "len" which is the
length of the image being downloaded to invalidate the cache to make
sure we are invalidating with the right size.

Change-Id: Iaeb8e412ac6c5a31ddeb114959dcb1153d0f9ffd
diff --git a/app/aboot/fastboot.c b/app/aboot/fastboot.c
index 6f1841f..545a24d 100644
--- a/app/aboot/fastboot.c
+++ b/app/aboot/fastboot.c
@@ -481,7 +481,7 @@
 	/*
 	 * Discard the cache contents before starting the download
 	 */
-	arch_invalidate_cache_range((addr_t) download_base, sz);
+	arch_invalidate_cache_range((addr_t) download_base, len);
 
 	r = usb_if.usb_read(download_base, len);
 	if ((r < 0) || ((unsigned) r != len)) {