]> git.sur5r.net Git - u-boot/commit
dfu: fix readback buffer overflow test
authorStephen Warren <swarren@nvidia.com>
Tue, 1 Jul 2014 18:16:57 +0000 (12:16 -0600)
committerTom Rini <trini@ti.com>
Sat, 9 Aug 2014 15:17:01 +0000 (11:17 -0400)
commit67ab0a5e9f295662e6c1363a6cb71d4dd9d51524
treef209ccbc29bf332398a75f06ce0d61b5b53d5bb2
parent54ce79c8a5f05704a086582939af35f60af072e3
dfu: fix readback buffer overflow test

The buffer is too small if it's < size to read, not if it's <= the size.
This fixes the 1MB test case on Tegra, which has a 1MB buffer.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/dfu/dfu.c