imx233: fix sd window size test

Change-Id: I8e35e108871677d4ad85c9c702d1d7e67b598c7e
This commit is contained in:
Amaury Pouly 2012-05-20 00:57:35 +02:00
parent e1713fd902
commit 1adc474771

View file

@ -430,7 +430,7 @@ static int transfer_sectors(IF_MD2(int drive,) unsigned long start, int count, v
/* check window */ /* check window */
start += sd_window_start[drive]; start += sd_window_start[drive];
if((start + count) > sd_window_end[drive]) if((start + count) >= sd_window_end[drive])
{ {
ret = -201; ret = -201;
goto Lend; goto Lend;