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

Changeset 7f11dc6 in mainline for kernel/generic/src/mm/slab.c


Ignore:
Timestamp:
2017-12-19T18:07:28Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
897fd8f1
Parents:
219c530
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-19 17:08:09)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-19 18:07:28)
Message:

Numerous minor error code tweaks in kernel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    r219c530 r7f11dc6  
    102102
    103103#include <assert.h>
     104#include <errno.h>
    104105#include <synch/spinlock.h>
    105106#include <mm/slab.h>
     
    334335        irq_spinlock_unlock(&cache->slablock, true);
    335336       
    336         if ((cache->constructor) && (cache->constructor(obj, flags))) {
     337        if ((cache->constructor) && (cache->constructor(obj, flags) != EOK)) {
    337338                /* Bad, bad, construction failed */
    338339                slab_obj_destroy(cache, obj, slab);
Note: See TracChangeset for help on using the changeset viewer.