scsi: qedf: fc_rport_priv reference counting fixes
authorHannes Reinecke <hare@suse.com>
Tue, 26 Mar 2019 07:38:49 +0000 (00:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:54:53 +0000 (21:54 -0400)
commit56efc304b18cbfa4a2b355c0ae817f61acea38c4
tree3d07b1605b8dcb121ee71eaa655bcb5f469e9180
parent6f15d0c02950c75f85542031ccbf6a9725ca9925
scsi: qedf: fc_rport_priv reference counting fixes

The fc_rport_priv structure is reference counted, so we need to ensure that
the reference is increased before accessing the structure.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_els.c
drivers/scsi/qedf/qedf_io.c
drivers/scsi/qedf/qedf_main.c