OpenBSD cvs log

created 2019-10-05T14:06:42Z
begin 2019-09-05T06:00:00Z
end 2019-09-05T09:00:00Z
path src/sys
commits 1

date 2019-09-05T08:41:20Z
author sf
files src/sys/dev/pci/if_em_hw.c log diff annotate
message em: Fix potential endless loop

If the NIC is in some error state (seen on a i219LM when em_read_phy_reg_ex()
returns at "MDI Error"), it can happen that we loop endlessly because the loop
variable is modified again somewhere down in the call stack. Use a separate
variable to make the attach fail with "Hardware Initialization Failed" instead
of hanging.

yes deraadt@