diff options
author | Chad Dupuis <cdupuis@marvell.com> | 2019-03-26 08:38:41 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-03-28 02:54:52 +0100 |
commit | 0cbd0075390db67324cfd33a50fa4998b605a085 (patch) | |
tree | 0f8de1e0381c5ab4e8a0cf72a5241b144122f758 /drivers | |
parent | scsi: qedf: Correct the memory barriers in qedf_ring_doorbell (diff) | |
download | linux-0cbd0075390db67324cfd33a50fa4998b605a085.tar.xz linux-0cbd0075390db67324cfd33a50fa4998b605a085.zip |
scsi: qedf: Add missing fc_disc_init call after allocating lport
When receiving an unsolicited frame we could crash on a list traversal in
fc_rport_lookup while searching the rport which is associated with our
lport.
Initialize the lport's discovery node after allocating the lport in
__qedf_probe().
Signed-off-by: Chad Dupuis <cdupuis@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 5bef6641dea0..e5d644f6e098 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -3047,6 +3047,8 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) goto err0; } + fc_disc_init(lport); + /* Initialize qedf_ctx */ qedf = lport_priv(lport); qedf->lport = lport; |