mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 12:50:02 +02: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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| qedi_dbg.c | ||
| qedi_dbg.h | ||
| qedi_debugfs.c | ||
| qedi_fw_api.c | ||
| qedi_fw_iscsi.h | ||
| qedi_fw_scsi.h | ||
| qedi_fw.c | ||
| 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 | ||
| qedi.h | ||