CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2024/06/11 04:06:35

Modified files:
        sys/dev/ic     : qwx.c 
        sys/dev/pci    : if_qwx_pci.c 

Log message:
Make sure qwx(4) always calls refcnt_init() before other refcnt functions.

I recently enabled automatic recovery from firmware crashes. if loading
firmware at boot would fail with a firmware error then the init task would
call refcnt_finalize() via qwx_stop() before refcnt_init() was called and
trigger a KASSERT in the refcnt code.

ok patrick@, who also reported the problem to me and tested the fix

Reply via email to