scsi: qedf: Check that fcport is offloaded before dereferencing pointers in initiate_...
authorChad Dupuis <chad.dupuis@cavium.com>
Wed, 31 May 2017 13:33:52 +0000 (06:33 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:06 +0000 (20:48 -0400)
commitff34e8e84fbbd3e3f31a4d54cc0501aeaa155d43
treec66e170cc411e836b97e74790ada7fdbad8761c9
parent53c51adbe6f83eba94fd39000f98cf4235a89e4c
scsi: qedf: Check that fcport is offloaded before dereferencing pointers in initiate_abts|cleanup.

If an fcport is not offloaded then the members of the qedf_rport struct
are undefined which may cause a system crash.

Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_io.c