OSDN Git Service

scsi: hisi_sas: initialize dq spinlock before use
authorXiang Chen <chenxiang66@hisilicon.com>
Fri, 8 Dec 2017 17:16:32 +0000 (01:16 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Dec 2017 02:25:02 +0000 (21:25 -0500)
commit39bade0c9fb11e04945a5749e01e65a376e4eb02
tree4e14ea46dea0816055ebb22c5a5082f92f77ded5
parented123b6e474039483ffdb0a621184e3c3b4f9bce
scsi: hisi_sas: initialize dq spinlock before use

It is required to initialize the dq spinlock before use, which was not being
done, so fix it. This issue can be detected when CONFIG_DEBUG_SPINLOCK is
enabled.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c