diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/imx233/sd-imx233.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sd-imx233.c b/firmware/target/arm/imx233/sd-imx233.c index 03b3684f7d..121b5c17aa 100644 --- a/firmware/target/arm/imx233/sd-imx233.c +++ b/firmware/target/arm/imx233/sd-imx233.c @@ -430,7 +430,7 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v /* check window */ start += sd_window_start[drive]; - if((start + count) > sd_window_end[drive]) + if((start + count) >= sd_window_end[drive]) { ret = -201; goto Lend; |