Peter Griffin
cc17862516
mfd: syscon: Call of_node_put() only when of_parse_phandle() takes a ref
...
[ Upstream commit d2b0680cf3b05490b579e71b0df6e07451977745 ]
of_parse_phandle() returns a device_node with refcount incremented, which
the callee needs to call of_node_put() on when done. We should only call
of_node_put() when the property argument is provided though as otherwise
nothing has taken a reference on the node.
Fixes: 45330bb43421 ("mfd: syscon: Allow property as NULL in syscon_regmap_lookup_by_phandle")
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20240220115012.471689-2-peter.griffin@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 5d16d3dc28a95915c1f7a41f68f2a069ced4b578)
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
2024-04-16 10:30:33 +00:00
..
2018-09-26 08:38:12 +02:00
2021-09-22 11:45:34 +02:00
2017-02-13 09:29:43 +00:00
2017-04-27 09:25:04 +01:00
2020-08-21 09:48:20 +02:00
2017-02-13 09:29:40 +00:00
2017-02-13 09:29:40 +00:00
2022-04-20 09:08:19 +02:00
2017-07-06 08:29:12 +01:00
2017-09-05 08:46:01 +01:00
2017-09-05 08:46:00 +01:00
2017-09-05 08:46:01 +01:00
2021-03-03 18:22:45 +01:00
2017-04-27 09:25:03 +01:00
2017-12-29 17:53:46 +01:00
2018-08-03 07:50:27 +02:00
2017-09-05 08:46:00 +01:00
2021-07-20 16:17:49 +02:00
2017-09-05 08:46:01 +01:00
2017-09-05 08:46:01 +01:00
2020-02-14 16:32:18 -05:00
2019-02-27 10:08:02 +01:00
2023-11-20 10:27:34 +01:00
2017-08-15 08:06:14 +01:00
2017-07-06 08:29:12 +01:00
2022-10-26 13:17:06 +02:00
2019-07-31 07:28:53 +02:00
2017-09-05 08:46:00 +01:00
2017-07-06 08:29:12 +01:00
2019-12-01 09:13:45 +01:00
2017-07-06 08:29:13 +01:00
2022-10-26 13:17:06 +02:00
2017-09-05 08:46:02 +01:00
2017-09-05 08:46:02 +01:00
2023-08-11 11:33:40 +02:00
2020-09-03 11:22:24 +02:00
2020-01-27 14:46:39 +01:00
2022-06-14 16:53:50 +02:00
2024-03-08 08:21:34 +00:00
2017-09-14 11:59:30 +02:00
2022-10-26 13:17:06 +02:00
2022-10-26 13:17:06 +02:00
2017-09-05 08:46:01 +01:00
2017-11-30 08:40:49 +00:00
2017-11-02 11:10:55 +01:00
2017-09-05 08:46:00 +01:00
2019-12-01 09:13:46 +01:00
2017-09-05 08:46:00 +01:00
2017-02-13 09:29:43 +00:00
2022-04-20 09:08:18 +02:00
2018-11-13 11:15:00 -08:00
2020-10-01 13:12:28 +02:00
2017-07-06 08:29:12 +01:00
2019-02-27 10:08:02 +01:00
2017-12-20 10:10:33 +01:00
2018-10-18 09:16:21 +02:00
2017-09-05 08:46:02 +01:00
2019-11-12 19:18:19 +01:00
2023-03-11 16:26:39 +01:00
2019-02-27 10:08:03 +01:00
2017-07-06 08:29:12 +01:00
2017-07-18 08:27:18 +01:00
2017-08-21 08:54:56 +01:00
2020-02-14 16:32:18 -05:00
2023-08-11 11:33:39 +02:00
2020-04-24 08:00:31 +02:00
2022-08-25 11:11:21 +02:00
2022-06-14 16:54:00 +02:00
2022-10-26 13:17:06 +02:00
2017-07-06 08:29:12 +01:00
2017-04-27 09:25:05 +01:00
2017-09-04 14:49:04 +01:00
2021-05-22 10:57:31 +02:00
2021-07-20 16:17:49 +02:00
2023-08-11 11:33:40 +02:00
2017-02-13 09:29:40 +00:00
2024-04-16 10:30:33 +00:00
2022-08-25 11:11:25 +02:00
2021-09-22 11:45:34 +02:00
2017-07-06 08:29:12 +01:00
2019-11-24 08:23:24 +01:00
2017-04-27 09:25:04 +01:00
2017-05-22 17:26:58 -07:00
2017-07-18 08:27:37 +01:00
2019-01-23 08:09:49 +01:00
2017-08-15 08:27:22 +01:00
2019-02-27 10:08:03 +01:00
2017-06-15 18:23:27 +01:00
2017-02-13 09:29:43 +00:00
2019-06-15 11:54:52 +02:00
2017-09-05 08:46:01 +01:00
2017-12-29 17:53:46 +01:00
2017-09-04 14:41:02 +01:00
2017-09-04 14:41:02 +01:00
2017-09-04 14:41:02 +01:00
2019-06-15 11:54:52 +02:00
2019-02-27 10:08:02 +01:00
2017-11-02 11:10:55 +01:00
2021-03-03 18:22:47 +01:00
2017-07-06 08:29:11 +01:00
2017-07-06 08:29:11 +01:00
2017-03-23 11:45:50 +00:00
2017-07-06 08:29:11 +01:00
2019-02-27 10:08:03 +01:00
2020-06-25 15:41:49 +02:00
2021-09-22 11:45:34 +02:00