scsi: qla2xxx: Use mutex protection during qla2x00_sysfs_read_fw_dump()
authorQuinn Tran <quinn.tran@cavium.com>
Tue, 2 Apr 2019 21:24:28 +0000 (14:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:45:58 +0000 (23:45 -0400)
commita6b95d1c71e9adef5ab5ba77c42a50d0b7b409d6
tree946bd209009da0949809b8c2a837731da48d37c7
parenta4226ec3ef1214b0973abdba64db66e10f6b0a1c
scsi: qla2xxx: Use mutex protection during qla2x00_sysfs_read_fw_dump()

Add mutex protection to prevent driver from freeing the FW dump buffer
while the extraction is in progress.

[mkp: commit desc]

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_attr.c
drivers/scsi/qla2xxx/qla_init.c