]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: qedf: Add missing fc_disc_init call after allocating lport
authorChad Dupuis <cdupuis@marvell.com>
Tue, 26 Mar 2019 07:38:41 +0000 (00:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:54:52 +0000 (21:54 -0400)
commit0cbd0075390db67324cfd33a50fa4998b605a085
tree0f8de1e0381c5ab4e8a0cf72a5241b144122f758
parent90ccf7579873f498ea1254c12044477056692432
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>
drivers/scsi/qedf/qedf_main.c