Ignore:
Timestamp:
Aug 7, 2017, 12:50:17 PM (4 years ago)
Author:
alain
Message:

Introduce the delayed context switch if current thread has a lock.

File:
1 edited

Legend:

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

    r326 r337  
    282282
    283283    // Decrease refcount for bin file, root file and cwd file
    284         vfs_file_count_down( process->vfs_bin_xp );
    285     vfs_file_count_down( process->vfs_root_xp );
    286     vfs_file_count_down( process->vfs_cwd_xp );
     284        if( process->vfs_bin_xp  != XPTR_NULL ) vfs_file_count_down( process->vfs_bin_xp );
     285        if( process->vfs_root_xp != XPTR_NULL ) vfs_file_count_down( process->vfs_root_xp );
     286        if( process->vfs_cwd_xp  != XPTR_NULL ) vfs_file_count_down( process->vfs_cwd_xp );
    287287
    288288    // Destroy VMM
Note: See TracChangeset for help on using the changeset viewer.