Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes in / [563d6077:963462af] in mainline


Ignore:
File:
1 edited

Legend:

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

    r563d6077 r963462af  
    400400                         * from the size of the file allocation table.
    401401                         */
    402                         if ((cl - 2) * bs->spc + ssa >= ts) {
     402                        if ((cl >= 2) && ((cl - 2) * bs->spc + ssa >= ts)) {
    403403                                rc = block_put(blk);
    404404                                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.