aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-07 01:06:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-07 01:06:52 -0400
commit40fa9167d307de29be2740bc10c4093502a917ed (patch)
tree4269055104cb48addcb1ab8ef95fd574613c3234
parentcd2093cb45a4d9332d4e5a2170602f74bca298a4 (diff)
parent3cc5746e5ad7688e274e193fa71278d98aa52759 (diff)
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
-rw-r--r--drivers/scsi/qedi/qedi_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index cc8e64dc65ad..e5bd035ebad0 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -2472,6 +2472,7 @@ static int __qedi_probe(struct pci_dev *pdev, int mode)
2472 /* start qedi context */ 2472 /* start qedi context */
2473 spin_lock_init(&qedi->hba_lock); 2473 spin_lock_init(&qedi->hba_lock);
2474 spin_lock_init(&qedi->task_idx_lock); 2474 spin_lock_init(&qedi->task_idx_lock);
2475 mutex_init(&qedi->stats_lock);
2475 } 2476 }
2476 qedi_ops->ll2->register_cb_ops(qedi->cdev, &qedi_ll2_cb_ops, qedi); 2477 qedi_ops->ll2->register_cb_ops(qedi->cdev, &qedi_ll2_cb_ops, qedi);
2477 qedi_ops->ll2->start(qedi->cdev, &params); 2478 qedi_ops->ll2->start(qedi->cdev, &params);