]> 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)
commitbb1a016c24712b5f2014d6d2c63db32a7a86d0b0
tree0f8de1e0381c5ab4e8a0cf72a5241b144122f758
parente6660741549e69c3728bfb05c93ba8eafde4f38b
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