Changeset 185


Ignore:
Timestamp:
Jul 11, 2017, 1:24:47 PM (7 years ago)
Author:
max@…
Message:

use thread_release directly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/thread.c

    r171 r185  
    406406    error_t        error;
    407407        thread_t     * thread;       // pointer on new thread descriptor
    408         kmem_req_t     req;          // kmem request (for release)
    409408
    410409    thread_dmsg("\n[INFO] %s : enters for type %s in cluster %x\n",
     
    434433    if( error ) // release allocated memory for thread descriptor
    435434    {
    436             req.type  = KMEM_PAGE;
    437         req.ptr   = ppm_vaddr2page( thread );
    438         kmem_free( &req );
     435        thread_release( thread );
    439436        return EINVAL;
    440437    }
Note: See TracChangeset for help on using the changeset viewer.