]> git.baikalelectronics.ru Git - kernel.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)
commitf0476eb2d21e6aa46073d80668ff721b44207d6e
tree0f8de1e0381c5ab4e8a0cf72a5241b144122f758
parentdaf0a9185b70bfa33796745ca27fa6add0d3db1b
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