git: kernel/nfs: Fix up the per-export address lists.

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Aug 21 14:25:47 PDT 2015


commit f9ecb661cee333906bd85893e928c848078a6af2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Aug 21 14:23:15 2015 -0700

    kernel/nfs: Fix up the per-export address lists.
    
    * Use a pool token to properly protect access to both the radix
      trees and the mask tree.
    
    * Also free the mask tree when freeing the address list trees.
    
    * Fix a few bugs in the original work (ne_inethead and ne_inet6head
      were not assigned, *prnh not set to NULL on free, and ne_maskhead
      was being unconditionally freed even if it wasn't initialized.
    
    Reported-by: profmakx
    Lots-of-help-from: sephe, dillon
    Submitted-by: Nuno Antunes <nuno.antunes at gmail.com>

Summary of changes:
 sys/kern/vfs_subr.c | 75 +++++++++++++++++++++++++++++------------------------
 sys/sys/mount.h     |  4 +++
 2 files changed, 45 insertions(+), 34 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f9ecb661cee333906bd85893e928c848078a6af2


-- 
DragonFly BSD source repository



More information about the Commits mailing list