[GIT PULL] SCSI fixes for 4.19-rc5

From: James Bottomley
Date: Sat Oct 06 2018 - 13:20:40 EST


Small fix for an unititialized mutex in the qedi driver.

The patch is available here:

git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes

The short changelog is:

Nilesh Javali (1):
ÂÂÂÂÂÂscsi: qedi: Initialize the stats mutex lock

and the diffstat:

Âdrivers/scsi/qedi/qedi_main.c | 1 +
Â1 file changed, 1 insertion(+)

With full diff below.

James

---

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)
/* start qedi context */
spin_lock_init(&qedi->hba_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->start(qedi->cdev, &params);