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
1 file changed