This is a v0.11 post-release patch #1 (March 9, 2015) downloaded from: http://elm-chan.org/fsw/ff/patches.html on 20150804.
Signed-off-by: Stephen Warren <swar...@wwwdotorg.org> --- fs/fat/ff.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/fat/ff.c b/fs/fat/ff.c index 30d2e714c8d2..fe7764d6daa2 100644 --- a/fs/fat/ff.c +++ b/fs/fat/ff.c @@ -2329,14 +2329,11 @@ FRESULT validate ( /* FR_OK(0): The object is valid, !=0: Invalid */ FIL *fil = (FIL*)obj; /* Assuming offset of .fs and .id in the FIL/DIR structure is identical */ - if (!fil || !fil->fs || !fil->fs->fs_type || fil->fs->id != fil->id) + if (!fil || !fil->fs || !fil->fs->fs_type || fil->fs->id != fil->id || (disk_status(fil->fs->drv) & STA_NOINIT)) return FR_INVALID_OBJECT; ENTER_FF(fil->fs); /* Lock file system */ - if (disk_status(fil->fs->drv) & STA_NOINIT) - return FR_NOT_READY; - return FR_OK; } -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot