cgd c8e4c454f2 curproc was being used directly for ru_{in,ou}block counting. Instead
of using it directly, use a local, and set that local to be curproc
if curproc is not NULL else a pointer to process 0's proc struct.
If syncing disks while handling a panic that occurred while 'curproc'
was NULL, the old code would dereference NULL and die.
1996-10-15 23:06:27 +00:00
..
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-02 18:04:56 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-15 21:35:56 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00
1996-10-13 02:32:29 +00:00