mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
PCIe: rockchip: Fix uninitialized lock
intx_lock should be initialized before use.
Fixes: ee99fe07a7 ("PCIe: rockchip: Add more legacy int support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I39586ae4f8edc1c39d78ce95af29f24bfc46b4d4
This commit is contained in:
@@ -1575,6 +1575,7 @@ static int rk_pcie_init_irq_domain(struct rk_pcie *rockchip)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
raw_spin_lock_init(&rockchip->intx_lock);
|
||||
rockchip->irq_domain = irq_domain_add_linear(intc, PCI_NUM_INTX,
|
||||
&intx_domain_ops, rockchip);
|
||||
if (!rockchip->irq_domain) {
|
||||
|
||||
Reference in New Issue
Block a user