Changeset 0f1cf7a in mainline


Ignore:
Timestamp:
2011-02-02T22:20:14Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca2a18e
Parents:
0dfaa099
Message:

Assert that the block being put has positive number of references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified uspace/lib/block/libblock.c

    r0dfaa099 r0f1cf7a  
    566566        assert(devcon);
    567567        assert(devcon->cache);
     568        assert(block->refcnt >= 1);
    568569
    569570        cache = devcon->cache;
Note: See TracChangeset for help on using the changeset viewer.