projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed123b6
)
scsi: hisi_sas: initialize dq spinlock before use
author
Xiang Chen
<
[email protected]
>
Fri, 8 Dec 2017 17:16:32 +0000
(
01:16
+0800)
committer
Martin K. Petersen
<
[email protected]
>
Fri, 15 Dec 2017 02:25:02 +0000
(21:25 -0500)
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 <
[email protected]
>
Signed-off-by: John Garry <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/hisi_sas/hisi_sas_main.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/hisi_sas/hisi_sas_main.c
b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 5f503cb095085d2baa7e2f24248419dbbb432e29..359ec52fc2fbe8f61e8dc48720f579527eb16ac1 100644
(file)
--- a/
drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/
drivers/scsi/hisi_sas/hisi_sas_main.c
@@
-1657,6
+1657,7
@@
int hisi_sas_alloc(struct hisi_hba *hisi_hba, struct Scsi_Host *shost)
cq->hisi_hba = hisi_hba;
/* Delivery queue structure */
+ spin_lock_init(&dq->lock);
dq->id = i;
dq->hisi_hba = hisi_hba;