Liang He
ce63c44b63
powerpc/pci-common: Fix refcount bug for 'phb->dn'
...
In pcibios_alloc_controller(), 'phb' is allocated and escaped into
global 'hose_list'. So we should call of_node_get() when a new reference
created into 'phb->dn'. And when phb is freed, we should call
of_node_put() on it.
NOTE: This function is called in the iteration of for_each_xx in
chrp_find_bridges() and pSeries_discover_phbs(). If there is no
of_node_get(), the object may be prematurely freed.
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220702022936.266146-1-windhl@126.com
2022-09-05 17:30:29 +10:00
..
2022-07-25 12:05:15 +10:00
2022-03-31 12:03:46 +09:00
2022-08-10 15:38:16 +10:00
2022-09-05 17:28:25 +10:00
2020-03-25 11:50:48 +01:00
2021-12-09 22:41:21 +11:00
2022-06-29 19:21:21 +10:00
2021-10-27 22:30:32 +11:00
2022-07-25 12:05:15 +10:00
2022-05-08 22:15:04 +10:00
2019-06-15 16:52:06 +10:00
2021-10-27 22:30:32 +11:00
2020-06-02 20:59:11 +10:00
2019-05-30 11:26:32 -07:00
2020-12-05 21:49:18 +11:00
2019-06-05 17:37:06 +02:00
2021-11-24 21:08:57 +11:00
2019-05-30 11:26:32 -07:00
2022-07-27 21:36:05 +10:00
2022-05-28 11:27:17 -07:00
2022-06-29 16:45:05 +10:00
2021-12-16 21:31:45 +11:00
2021-09-30 17:10:17 +10:00
2019-02-18 22:41:03 +11:00
2022-04-18 07:21:12 +02:00
2022-08-26 11:02:20 +10:00
2022-03-08 22:06:25 +11:00
2021-12-23 22:33:10 +11:00
2022-07-25 12:05:15 +10:00
2022-05-05 22:12:44 +10:00
2022-05-22 15:59:43 +10:00
2022-05-08 22:15:40 +10:00
2022-05-05 22:12:44 +10:00
2022-05-19 23:11:27 +10:00
2022-05-19 23:11:27 +10:00
2019-05-30 11:26:32 -07:00
2021-12-09 22:41:21 +11:00
2021-11-29 23:15:20 +11:00
2022-07-25 12:05:15 +10:00
2022-05-28 11:27:17 -07:00
2021-10-09 00:15:59 +11:00
2021-12-16 21:31:45 +11:00
2021-08-25 13:35:47 +10:00
2022-02-07 21:03:10 +11:00
2022-01-14 15:17:26 +01:00
2022-02-07 21:03:10 +11:00
2022-02-07 21:03:10 +11:00
2022-06-29 17:04:15 +10:00
2022-07-27 21:36:05 +10:00
2021-11-29 23:15:20 +11:00
2022-02-07 21:03:10 +11:00
2021-12-09 22:41:21 +11:00
2021-12-09 22:41:21 +11:00
2021-12-23 22:35:13 +11:00
2019-05-30 11:26:32 -07:00
2021-10-20 21:37:58 +11:00
2021-03-29 13:22:10 +11:00
2022-05-04 19:37:46 +10:00
2020-05-07 17:25:54 +10:00
2022-05-19 23:11:29 +10:00
2022-07-28 16:22:15 +10:00
2021-05-28 22:54:27 +10:00
2019-05-30 11:26:32 -07:00
2020-12-04 01:01:09 +11:00
2022-07-28 16:22:13 +10:00
2022-06-29 16:47:43 +10:00
2022-08-06 16:38:17 -07:00
2022-05-08 22:15:40 +10:00
2021-06-17 00:09:00 +10:00
2021-08-13 22:04:26 +10:00
2022-06-10 14:51:37 +02:00
2021-10-27 11:21:49 -04:00
2022-06-29 19:37:07 +10:00
2019-09-14 00:04:40 +10:00
2021-10-18 16:33:03 +02:00
2021-12-23 22:35:13 +11:00
2022-09-05 17:28:26 +10:00
2022-07-28 16:22:15 +10:00
2021-12-09 22:41:21 +11:00
2022-07-27 21:36:04 +10:00
2021-08-25 13:35:47 +10:00
2022-05-19 23:11:29 +10:00
2021-08-25 13:35:47 +10:00
2022-05-22 15:58:27 +10:00
2022-05-22 15:58:27 +10:00
2022-05-19 23:11:29 +10:00
2019-05-30 11:26:32 -07:00
2019-08-30 09:40:15 +10:00
2022-05-08 22:15:40 +10:00
2020-07-26 23:34:19 +10:00
2021-11-29 23:15:20 +11:00
2021-12-09 22:41:21 +11:00
2022-05-05 22:11:57 +10:00
2022-07-27 21:36:04 +10:00
2022-07-27 21:36:03 +10:00
2022-09-05 17:30:25 +10:00
2022-05-08 22:15:40 +10:00
2022-09-05 17:30:29 +10:00
2022-05-08 22:15:40 +10:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-04-04 21:40:57 +11:00
2022-05-08 22:15:40 +10:00
2022-06-18 10:19:10 +10:00
2022-06-24 13:47:26 +10:00
2022-07-09 19:29:34 +10:00
2017-11-02 11:10:55 +01:00
2022-08-01 22:21:19 +10:00
2021-08-25 13:35:47 +10:00
2022-03-09 21:47:53 +11:00
2022-05-19 23:11:27 +10:00
2022-05-05 22:12:44 +10:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:04 +10:00
2022-06-18 10:19:10 +10:00
2022-05-08 22:15:04 +10:00
2020-07-16 14:49:53 +10:00
2022-08-26 11:02:20 +10:00
2019-11-13 00:33:22 +11:00
2022-03-08 22:07:41 +11:00
2022-05-08 22:15:40 +10:00
2022-06-29 17:04:14 +10:00
2022-08-07 17:52:35 -07:00
2021-12-09 22:41:19 +11:00
2022-05-19 23:11:26 +10:00
2022-07-28 16:22:14 +10:00
2022-05-19 23:11:26 +10:00
2021-11-16 21:24:16 +11:00
2017-11-02 11:10:55 +01:00
2022-08-07 10:03:24 -07:00
2021-09-30 21:24:06 -04:00
2021-10-22 15:22:05 +11:00
2019-06-14 10:48:56 +02:00
2021-12-23 22:35:13 +11:00
2021-10-22 15:22:05 +11:00
2021-12-23 22:35:13 +11:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2021-02-11 23:35:07 +11:00
2022-07-28 16:22:15 +10:00
2022-05-04 19:37:46 +10:00
2022-05-08 22:15:40 +10:00
2019-05-30 11:26:32 -07:00
2021-04-14 23:04:16 +10:00
2022-03-08 22:06:25 +11:00
2022-09-05 14:14:27 +10:00
2022-03-16 11:59:24 +11:00
2022-07-28 16:22:14 +10:00
2019-08-30 09:40:15 +10:00
2021-12-23 22:33:10 +11:00
2021-08-19 09:02:55 +09:00
2022-05-06 00:00:20 +10:00
2022-02-12 22:47:43 +11:00
2022-02-12 22:47:43 +11:00
2022-08-22 13:36:59 +10:00
2021-12-09 22:41:21 +11:00
2021-12-16 21:31:45 +11:00
2022-03-09 21:47:53 +11:00
2022-07-27 21:36:02 +10:00