To make sure detach hooks are executed in reverse order they were added, they must be appended to the head of the list.  It doesn't really matter right now since most of our pseudo drivers use their own custom detach procedure, but teach vlan(4) to do the right thing since more conversion are coming.
To make sure detach hooks are executed in reverse order they were added,
they must be appended to the head of the list.  It doesn't really matter
right now since most of our pseudo drivers use their own custom detach
procedure, but teach vlan(4) to do the right thing since more conversion
are coming.

ok deraadt@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars