SCSI fixes on 20181006
Small fix for an unititialized mutex in the qedi driver. Signed-off-by: James E.J. Bottomley <jejb@linux.ibm.com> -----BEGIN PGP SIGNATURE----- iJwEABMIAEQWIQTnYEDbdso9F2cI+arnQslM7pishQUCW7juciYcamFtZXMuYm90 dG9tbGV5QGhhbnNlbnBhcnRuZXJzaGlwLmNvbQAKCRDnQslM7pishUgAAQDlCQhi Ww2iPFn7bANUEXmlpceCwva7xGokYQvoa9uhkgD/Ym5aFFlbD4U1THIWIh6AgSvz 5/uPEc7UTLCE/Zjib+0= =d63s -----END PGP SIGNATURE----- Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi James writes: "SCSI fixes on 20181006 Small fix for an unititialized mutex in the qedi driver." * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: qedi: Initialize the stats mutex lock
This commit is contained in:
Коммит
40fa9167d3
|
@ -2472,6 +2472,7 @@ static int __qedi_probe(struct pci_dev *pdev, int mode)
|
||||||
/* start qedi context */
|
/* start qedi context */
|
||||||
spin_lock_init(&qedi->hba_lock);
|
spin_lock_init(&qedi->hba_lock);
|
||||||
spin_lock_init(&qedi->task_idx_lock);
|
spin_lock_init(&qedi->task_idx_lock);
|
||||||
|
mutex_init(&qedi->stats_lock);
|
||||||
}
|
}
|
||||||
qedi_ops->ll2->register_cb_ops(qedi->cdev, &qedi_ll2_cb_ops, qedi);
|
qedi_ops->ll2->register_cb_ops(qedi->cdev, &qedi_ll2_cb_ops, qedi);
|
||||||
qedi_ops->ll2->start(qedi->cdev, ¶ms);
|
qedi_ops->ll2->start(qedi->cdev, ¶ms);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче