git: if_clone: Check cloner name to avoid duplicate in if_clone_attach()

Aaron LI aly at crater.dragonflybsd.org
Wed Aug 8 01:37:00 PDT 2018


commit 595dc8f18c44a1d14a2b0b9b6ba2485cee04d3b5
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Aug 6 00:34:25 2018 +0800

    if_clone: Check cloner name to avoid duplicate in if_clone_attach()
    
    Change if_clone_attach() to check the cloner name instead of the pointer
    to avoid duplicate, also to return EEXIST instead of panic.

Summary of changes:
 sys/net/if_clone.c | 14 +++++---------
 sys/net/if_clone.h |  2 +-
 2 files changed, 6 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/595dc8f18c44a1d14a2b0b9b6ba2485cee04d3b5


-- 
DragonFly BSD source repository


More information about the Commits mailing list