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

Alex Hornung alexh at
Mon Aug 31 02:06:41 PDT 2009

commit 527e4a212528eb64553709ba0116c0b80968ec7e
Author: Alex Hornung <ahornung at>
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
    * If the unit doesn't exist, call make_dev.
    * Assert that dev != NULL before calling tapcreate()
    Reported-By: Rumko

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

DragonFly BSD source repository

More information about the Commits mailing list