mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 01:52:35 -05:00
imx233: fix sd window size test
Change-Id: I8e35e108871677d4ad85c9c702d1d7e67b598c7e
This commit is contained in:
parent
e1713fd902
commit
1adc474771
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue