Ignore:
File:
1 edited

Legend:

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

    r1e4cada r50f9c3a  
    4646#include <align.h>
    4747#include <assert.h>
    48 #include <fibril_synch.h>
     48#include <fibril_sync.h>
    4949#include <mem.h>
    5050
     
    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.