]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't zero fd_nfiles during fdp destruction.
authorMateusz Guzik <mjg@FreeBSD.org>
Thu, 10 Jul 2014 21:05:45 +0000 (21:05 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Thu, 10 Jul 2014 21:05:45 +0000 (21:05 +0000)
commitb23c40d7b1f67b4206bb1a2043a100a017298c36
treeefc91fa80fb48280866a8096f72c959523d130b8
parente518baf8f9b132f2980f425722de352c3aad38a9
Don't zero fd_nfiles during fdp destruction.

Code trying to take a look has to check fd_refcnt and it is 0 by that time.

This is a follow up to r268505, without this the code would leak memory for
tables bigger than the default.

MFC after: 1 week
sys/kern/kern_descrip.c