[Bug 291120] iwlwifi: iwl_opmode_register panic

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 05 Mar 2026 12:46:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291120

Bjoern A. Zeeb <bz@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bz@FreeBSD.org

--- Comment #1 from Bjoern A. Zeeb <bz@FreeBSD.org> ---
In _iwl_op_mode_start()
drv was NULL as drv->trans is at 0x470.

That means iwl_req_fw_callback() wasn't run yet and
list_add_tail(&drv->list, &op->drv);
had not happened yet.

So why does
                /* TODO: need to handle exceptional case */
                list_for_each_entry(drv, &op->drv, list)
                        drv->op_mode = _iwl_op_mode_start(drv, op);

in iwl_opmode_register() even try to call _iwl_op_mode_start() ?

Was iwl_drv_init() not run initializing the list?  It's run as module_init().

I belive, yes, for mvm we changed that to SI_ORDER_SECOND.  Need to do for mld
as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.