hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/sysdev/fsl_msi.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2007-2011 Freescale Semiconductor, Inc.
34 *
....@@ -5,12 +6,6 @@
56 * Jason Jin <Jason.jin@freescale.com>
67 *
78 * The hwirq alloc and free code reuse from sysdev/mpic_msi.c
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * as published by the Free Software Foundation; version 2 of the
12
- * License.
13
- *
149 */
1510 #include <linux/irq.h>
1611 #include <linux/msi.h>
....@@ -216,8 +211,10 @@
216211 dev_err(&pdev->dev,
217212 "node %pOF has an invalid fsl,msi phandle %u\n",
218213 hose->dn, np->phandle);
214
+ of_node_put(np);
219215 return -EINVAL;
220216 }
217
+ of_node_put(np);
221218 }
222219
223220 for_each_pci_msi_entry(entry, pdev) {