diff options
author | James Smart <[email protected]> | 2021-10-20 14:14:10 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-10-20 23:33:45 -0400 |
commit | a516074c20261d7a49164206579ef89a04b8fc39 (patch) | |
tree | c852491549982e01cc3df8293d6573848b380a51 /drivers/usb/cdns3/cdns3-trace.c | |
parent | b6ca770ae7f2c560a29bbd02c4e3d734fafaf804 (diff) |
scsi: lpfc: Revert LOG_TRACE_EVENT back to LOG_INIT prior to driver_resource_setup()
In cases when lpfc_enable_pci_dev() fails, lpfc_printf_log() with
LOG_TRACE_EVENT set will call lpfc_dmp_dbg() which uses the
phba->port_list_lock.
However, phba->port_list_lock does not get initialized until
lpfc_setup_driver_resource_phase1(). Thus, any initialization routine with
LOG_TRACE_EVENT log message prior to lpfc_setup_driver_resource_phase1()
will crash.
Revert LOG_TRACE_EVENT back to LOG_INIT for all log messages in routines
prior to lpfc_setup_driver_resource_phase1().
Link: https://lore.kernel.org/r/[email protected]
CC: Zheyu Ma <[email protected]>
Co-developed-by: Justin Tee <[email protected]>
Signed-off-by: Justin Tee <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions