Changeset 50f9c3a in mainline


Ignore:
Timestamp:
2010-01-15T19:32:14Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61c0402, 963462af
Parents:
42fa698
Message:

Be more careful when testing whether the considered cluster really exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.c

    r42fa698 r50f9c3a  
    398398                         * from the size of the file allocation table.
    399399                         */
    400                         if ((cl - 2) * bs->spc + ssa >= ts) {
     400                        if ((cl >= 2) && ((cl - 2) * bs->spc + ssa >= ts)) {
    401401                                rc = block_put(blk);
    402402                                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.