mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
qedi_get_protocol_tlv_data() can be called asynchronously by QED after
qedi_ops->register_ops(). It takes stats_lock and reads ll2_mtu, but
__qedi_probe() currently registers the callback before initializing the
mutex and assigning the default MTU on the normal probe path.
Initialize the callback-visible state before registering qedi_cb_ops. Keep
the recovery path from reinitializing state because it reuses the existing
qedi context.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| qedi.h | ||
| qedi_dbg.c | ||
| qedi_dbg.h | ||
| qedi_debugfs.c | ||
| qedi_fw.c | ||
| qedi_fw_api.c | ||
| qedi_fw_iscsi.h | ||
| qedi_fw_scsi.h | ||
| qedi_gbl.h | ||
| qedi_hsi.h | ||
| qedi_iscsi.c | ||
| qedi_iscsi.h | ||
| qedi_main.c | ||
| qedi_nvm_iscsi_cfg.h | ||
| qedi_sysfs.c | ||
| qedi_version.h | ||