scsi: qla2xxx: Avoid that Coverity complains about dereferencing a NULL rport pointer
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:19 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:49 +0000 (17:24 -0400)
commit2dbb02fd495c9b2e41ba37d6fec2aa713d328788
tree7cdf7f0ee6207bad68e433800ab95d15ab72ce53
parentdafbe56f6e338c7f583a524c714942f892c1f50a
scsi: qla2xxx: Avoid that Coverity complains about dereferencing a NULL rport pointer

Since Coverity cannot know that rport != NULL in qla2xxx_queuecommand() and
since there is code in that function that dereferences the rport pointer,
modify qla2xxx_queuecommand() such that it fails SCSI commands if rport ==
NULL.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c