git: if_tap: Destroy the autoclone device when unload module

Aaron LI aly at crater.dragonflybsd.org
Mon Jul 16 23:58:42 PDT 2018


commit a77c4ded301e67d4185b9228fbcb26ba74c09b55
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Jul 8 12:30:55 2018 +0800

    if_tap: Destroy the autoclone device when unload module
    
    Use destroy_autoclone_dev(), which replaces both devfs_clone_handler_del()
    and devfs_clone_bitmap_uninit(), to destroy the autoclone device /dev/tap
    when unload the module.
    
    Without this fix, the autoclone device /dev/tap is left over when the
    module is unloaded.

Summary of changes:
 sys/net/tap/if_tap.c | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list