Proc refcnting wrappers
[akaros.git] / kern / arch / sparc / trap.c
index 3dc0144..cc743ff 100644 (file)
@@ -331,7 +331,7 @@ unhandled_trap(trapframe_t* state)
                spin_unlock(&screwup_lock);
 
                assert(current);
                spin_unlock(&screwup_lock);
 
                assert(current);
-               kref_get(&current->kref, 1);
+               proc_incref(current, 1);
                proc_destroy(current);
 
                panic("I shouldn't have gotten here!");
                proc_destroy(current);
 
                panic("I shouldn't have gotten here!");