[prev in list] [next in list] [prev in thread] [next in thread]
List: dragonfly-commits
Subject: git: if_tun: Disallow to destroy an opened device
From: Aaron LI <aly () crater ! dragonflybsd ! org>
Date: 2018-08-30 13:41:06
Message-ID: 20180830134106.864153DF8FF () crater ! dragonflybsd ! org
[Download RAW message or body]
commit 252be4c402afa5c4e35b827f272e3c52e8dbe46f
Author: Aaron LI <aly@aaronly.me>
Date: Thu Aug 30 21:36:07 2018 +0800
if_tun: Disallow to destroy an opened device
When a tun device (created via 'ifconfig') is opened, disallow to destroy
it (e.g., ifconfig destroy). Otherwise, a panic occurs when the caller
closes the device, since it has been already destroyed.
Following the previous fix to if_tap.
Summary of changes:
sys/net/tun/if_tun.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/252be4c402afa5c4e35b827f272e3c52e8dbe46f
--
DragonFly BSD source repository
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic