git: tap - Don't make_dev if dev already exists

Alex Hornung alexh at crater.dragonflybsd.org
Mon Aug 31 02:06:41 PDT 2009


commit 527e4a212528eb64553709ba0116c0b80968ec7e
Author: Alex Hornung <ahornung at gmail.com>
Date:   Sun Aug 30 18:44:30 2009 +0100

    tap - Don't make_dev if dev already exists
    
    * If the unit already exists when calling tap_clone_create,
    find the corresponding cdev by calling
    devfs_find_device_by_name.
    * If the unit doesn't exist, call make_dev.
    * Assert that dev != NULL before calling tapcreate()
    
    Dragonfly-bug: http://bugs.dragonflybsd.org/issue1453
    Reported-By: Rumko

Summary of changes:
 sys/net/tap/if_tap.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/527e4a212528eb64553709ba0116c0b80968ec7e


-- 
DragonFly BSD source repository





More information about the Commits mailing list