mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-05 20:24:09 +08:00
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>
This commit is contained in:
parent
90ccf75798
commit
0cbd007539
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user