scsi: qla2xxx: fix fcport null pointer access.
authorQuinn Tran <quinn.tran@cavium.com>
Fri, 25 Jan 2019 07:23:44 +0000 (23:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:41:16 +0000 (21:41 -0500)
commit9ecd6564d1547d64fec464fdae75c82794c94c51
treef163a4b690b6f33ff2251edcb27531823a097d47
parent51fd6e6351a62da87a7eb7b059d34056d73e68e5
scsi: qla2xxx: fix fcport null pointer access.

This patch allocates DMA memory to prevent NULL pointer access for ct_sns
request while sending switch commands.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c