mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
Merge branch 'pci/controller/dwc-keystone'
- Fix OF node reference leak in init (Yuho Choi) * pci/controller/dwc-keystone: PCI: keystone: Fix OF node reference leak in init
This commit is contained in:
commit
ab345fad8f
|
|
@ -1391,13 +1391,17 @@ static int ks_pcie_fault(unsigned long addr, unsigned int fsr,
|
|||
|
||||
static int __init ks_pcie_init(void)
|
||||
{
|
||||
struct device_node *np;
|
||||
/*
|
||||
* PCIe access errors that result into OCP errors are caught by ARM as
|
||||
* "External aborts"
|
||||
*/
|
||||
if (of_find_matching_node(NULL, ks_pcie_of_match))
|
||||
np = of_find_matching_node(NULL, ks_pcie_of_match);
|
||||
if (np) {
|
||||
of_node_put(np);
|
||||
hook_fault_code(17, ks_pcie_fault, SIGBUS, 0,
|
||||
"Asynchronous external abort");
|
||||
}
|
||||
|
||||
return platform_driver_register(&ks_pcie_driver);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user