]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedf: Check for port type and role before processing an event
authorSaurav Kashyap <skashyap@marvell.com>
Fri, 7 Aug 2020 11:06:50 +0000 (04:06 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Aug 2020 01:41:51 +0000 (21:41 -0400)
commit3148424697444114b040145eaefd55164597cb05
treef8fcd0acca10d62770c1cfcf98b11f3d04c84c58
parent5df16d967feb4bf8526654aa231264613469d1c3
scsi: qedf: Check for port type and role before processing an event

The rport lock gets initialized during offload. If a non-FCP or non-target
rport got logout then this rport will be uninitialized. KASAN was
complaining because of it.

=========
[   14.384434] the code is fine but needs lockdep annotation.
[   14.384482] turning off the locking correctness validator.
========

Link: https://lore.kernel.org/r/20200807110656.19965-2-jhasan@marvell.com
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c