Mercurial > yaffs-ecoscentric-gpl
changeset 20:07c3a8ffa579
Fix issue with zero page
| author | charles <charles> |
|---|---|
| date | Wed, 06 Jul 2005 00:36:32 +0000 |
| parents | 2f9c52f2060c |
| children | 68dffdfc2095 |
| files | yaffs_guts.h |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -14,7 +14,7 @@ * * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. * - * $Id: yaffs_guts.h,v 1.6 2005-07-05 23:54:59 charles Exp $ + * $Id: yaffs_guts.h,v 1.7 2005-07-06 00:36:32 charles Exp $ */ #ifndef __YAFFS_GUTS_H__ @@ -655,12 +655,12 @@ typedef struct yaffs_DeviceStruct yaffs_ // Function to manipulate block info static Y_INLINE yaffs_BlockInfo* yaffs_GetBlockInfo(yaffs_Device *dev, int blk) { - if(blk < dev->startBlock || blk > dev->endBlock) + if(blk < dev->internalStartBlock || blk > dev->internalEndBlock) { T(YAFFS_TRACE_ERROR,(TSTR("**>> yaffs: getBlockInfo block %d is not valid" TENDSTR),blk)); YBUG(); } - return &dev->blockInfo[blk - dev->startBlock]; + return &dev->blockInfo[blk - dev->internalStartBlock]; }
