summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-20 00:57:35 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-20 01:35:24 +0200
commit1adc47477144e701dcb1184f907887eadec05fda (patch)
tree8e100d4719faeced53764e7f88be7b89c3061a83 /firmware/target/arm
parente1713fd902d7ab49f77ca6dcd981b4b03dd40485 (diff)
downloadrockbox-1adc47477144e701dcb1184f907887eadec05fda.tar.gz
rockbox-1adc47477144e701dcb1184f907887eadec05fda.tar.bz2
rockbox-1adc47477144e701dcb1184f907887eadec05fda.zip
imx233: fix sd window size test
Change-Id: I8e35e108871677d4ad85c9c702d1d7e67b598c7e
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/sd-imx233.c2
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;