HomeFreeBSD

netgraph/ng_base: Renaming a node to the same name is a noop

Description

netgraph/ng_base: Renaming a node to the same name is a noop

Detailed analysis in https://github.com/genneko/freebsd-vimage-jails/issues/2
brought the problem down to a double call of ng_node_name() before and
after a vnet move. Because the name of the node is already known
(occupied by itself), the second call fails.

PR: 241954
Reported by: Paul Armstrong
Differential Revision: https://reviews.freebsd.org/D30110

(cherry picked from commit 0345fd891fe13a191fc0fae9463ea9458bfaff5a)

Details

Provenance
donnerAuthored on May 4 2021, 7:20 PM
Differential Revision
D30110: netgraph/ng_base: Renaming a node to the same name is a noop
Parents
rG923cd7e05af8: rtwn_usb(4): Add a USB ID for the TP-Link Archer T2U v3.
Branches
Unknown
Tags
Unknown