sched: task: fix leftover invalid pmap pointer
This commit is contained in:
@@ -376,6 +376,7 @@ void task_exit(int status)
|
|||||||
spin_lock(&self->t_handles_lock);
|
spin_lock(&self->t_handles_lock);
|
||||||
|
|
||||||
pmap_switch(get_kernel_pmap());
|
pmap_switch(get_kernel_pmap());
|
||||||
|
self->t_address_space->s_pmap = PMAP_INVALID;
|
||||||
pmap_destroy(self->t_pmap);
|
pmap_destroy(self->t_pmap);
|
||||||
|
|
||||||
task_unlock(self);
|
task_unlock(self);
|
||||||
|
|||||||
Reference in New Issue
Block a user