The driver allocates the mutex but not initialize it. Use mutex_init() on it to initialize it correctly. This is detected by Coccinelle semantic patch. Fixes: 72af6f6f0d13 ("PCI: brcmstb: Add MSI support") Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx> --- drivers/pci/controller/pcie-brcmstb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index 43cba76c0e1e..065bada9cfad 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -528,6 +528,7 @@ static int brcm_pcie_enable_msi(struct brcm_pcie *pcie) if (!msi) return -ENOMEM; + mutex_init(&msi->lock); msi->dev = dev; msi->base = pcie->base; msi->np = pcie->np;