git: net: Fix SIOCSIFDESCR fallthrough bug in ifioctl()
Aaron LI
aly at crater.dragonflybsd.org
Mon Jul 20 22:19:59 PDT 2026
commit 606275e89ae39672bad2c9a439c72aaeb650a2ed
Author: Aaron LI <aly at aaronly.me>
Date: Tue Jul 21 13:15:53 2026 +0800
net: Fix SIOCSIFDESCR fallthrough bug in ifioctl()
* Add the missing 'break' to SIOCSIFDESCR to fix the fallthrough bug.
* Remove the redundant ifnet_lock()/unlock() pair.
* Clean up the code a bit by rearranging the local variables.
Summary of changes:
sys/net/if.c | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/606275e89ae39672bad2c9a439c72aaeb650a2ed
--
DragonFly BSD source repository
More information about the Commits
mailing list