Re: Use FREF() & finishdup() in dupfdopen()

2018-04-05 Thread Alexander Bluhm
On Tue, Apr 03, 2018 at 04:43:17PM +0200, Martin Pieuchot wrote: > Here's another refactoring to properly reference count a 'struct file *' > just after calling fd_getfile(). > > Instead of incrementing `f_count' by hand, give the current reference > to finishdup() like it is done in other places

Use FREF() & finishdup() in dupfdopen()

2018-04-03 Thread Martin Pieuchot
Here's another refactoring to properly reference count a 'struct file *' just after calling fd_getfile(). Instead of incrementing `f_count' by hand, give the current reference to finishdup() like it is done in other places in the same file. Ok? Index: kern/kern_descrip.c