Fix the wsmux_setmax() function. By the time wsmuxattach() runs (through hook in ioconf.c created by the wsmux pseudo-device), an input device may have already attached itself as a mux. We don't want to whack these pointers.
Fix the wsmux_setmax() function. By the time wsmuxattach() runs (through hook
in ioconf.c created by the wsmux pseudo-device), an input device may have
already attached itself as a mux. We don't want to whack these pointers.

Net result: the PS/2 mouse on my laptop is now properly mux'd. Right now I
have my laptop's builtin keyboard and builtin mouse (ps/2), plus I have
attached a separate USB keyboard and USB mouse. All four devices are accepting
input at the same time. If I want to go mobile, I can unhook the USB devices
and my builtin devices will still work without changing X settings. Very cool.

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