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

Changeset acc3f745 in mainline


Ignore:
Timestamp:
2010-04-03T16:55:29Z (12 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master
Children:
6ec34bb
Parents:
452268a
Message:

sys_get_task_info bugfix (cheking task id)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ps/ps.c

    r452268a racc3f745  
    4444#include <syscall/copy.h>
    4545#include <atomic.h>
     46#include <errno.h>
    4647
    4748static size_t count;
     
    127128        spinlock_lock(&tasks_lock);
    128129        task_t *t = task_find_by_id(id);
     130        if (!t) {
     131                spinlock_unlock(&tasks_lock);
     132                return ENOENT;
     133        }
    129134        spinlock_lock(&t->lock);
    130135        spinlock_unlock(&tasks_lock);
Note: See TracChangeset for help on using the changeset viewer.