diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-05-21 09:17:54 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-05-21 09:17:54 +0000 |
commit | 42c3219ed782c5a1065ad5ca7c71d8734c4065e0 (patch) | |
tree | aaeeeb0dd4d4e0cca65edb7dd8cbdda933e7445c /sys/dev/usb/usbdi.c | |
parent | 711af9c078183bfff233395a9db5a61c701313fe (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