summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-21 09:17:54 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-21 09:17:54 +0000
commit42c3219ed782c5a1065ad5ca7c71d8734c4065e0 (patch)
treeaaeeeb0dd4d4e0cca65edb7dd8cbdda933e7445c /sys/dev/usb/usbdi.c
parent711af9c078183bfff233395a9db5a61c701313fe (diff)
Correctly state the link state to INVALID when creating a carp interface.
Since vhe are allocated with M_ZERO and INIT is also defined to be 0, carp_set_state() would result in a no-op because of the state check. So explicitly initialize the state of a vhe to INIT and move the state check in carp_set_state_all() to prevent similar issues in the future. Problem and initial diff from Johan Ymerson, thanks! ok henning@
Diffstat (limited to 'sys/dev/usb/usbdi.c')
0 files changed, 0 insertions, 0 deletions