Joe Hattori
dddca3b2fc
regulator: of: Implement the unwind path of of_regulator_match()
...
of_regulator_match() does not release the OF node reference in the error
path, resulting in an OF node leak. Therefore, call of_node_put() on the
obtained nodes before returning the EINVAL error.
Since it is possible that some drivers call this function and do not
exit on failure, such as s2mps11_pmic_driver, clear the init_data and
of_node in the error path.
This was reported by an experimental verification tool that I am
developing. As I do not have access to actual devices nor the QEMU board
configuration to test drivers that call this function, no runtime test
was able to be performed.
Fixes: 1c8fa58f47 ("regulator: Add generic DT parsing for regulators")
Signed-off-by: Joe Hattori <joe@pf.is .s.u-tokyo.ac.jp>
Link: https://patch.msgid.link/20250104080453.2153592-1-joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Mark Brown <broonie@kernel.org >
2025-01-06 13:08:49 +00:00
..
2024-12-02 11:34:44 -08:00
2024-12-06 13:47:55 -08:00
2024-11-29 11:58:27 -08:00
2024-11-26 18:05:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-12-08 11:38:56 -08:00
2024-12-01 15:12:43 -08:00
2024-12-05 10:00:20 -07:00
2024-12-01 15:12:43 -08:00
2024-11-29 11:58:27 -08:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-11-23 10:44:31 -08:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-02 11:34:44 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-06 11:52:15 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-11-25 17:12:54 -08:00
2024-12-02 11:34:44 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-06 13:16:41 -08:00
2024-12-05 10:06:47 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-01 15:12:43 -08:00
2024-12-08 11:26:13 -08:00
2024-12-02 11:34:44 -08:00
2024-11-25 10:31:39 -08:00
2024-12-05 15:02:20 -08:00
2024-12-08 11:54:04 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-11-30 09:03:16 -08:00
2024-12-02 11:34:44 -08:00
2024-12-03 15:06:27 -07:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-11-20 21:38:24 -05:00
2024-12-02 11:34:44 -08:00
2024-12-02 11:34:44 -08:00
2024-12-02 15:37:16 +01:00
2024-11-30 10:32:47 -08:00
2024-12-05 10:25:06 -08:00
2024-12-02 11:34:44 -08:00
2024-12-05 10:14:36 -07:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-11-27 14:40:33 -08:00
2024-12-01 15:12:43 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-12-02 11:34:44 -08:00
2024-11-29 11:43:29 -08:00
2024-12-02 11:34:44 -08:00
2024-12-04 10:28:30 -08:00
2024-12-06 11:24:00 -08:00
2024-11-28 09:28:09 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-05 10:25:06 -08:00
2024-12-03 08:22:25 -08:00
2025-01-06 13:08:49 +00:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-11-29 11:43:29 -08:00
2024-12-01 15:12:43 -08:00
2024-12-04 13:22:59 -05:00
2024-11-30 14:45:29 -08:00
2024-12-01 15:12:43 -08:00
2024-11-21 08:28:08 -08:00
2024-12-02 11:34:44 -08:00
2024-12-06 11:36:48 -08:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-12-02 12:36:18 -05:00
2024-12-01 15:12:43 -08:00
2024-12-02 11:34:44 -08:00
2024-11-29 11:19:31 -08:00
2024-12-03 08:22:25 -08:00
2024-12-04 13:22:59 -05:00
2024-12-01 15:12:43 -08:00
2024-12-03 08:22:25 -08:00
2024-12-02 11:34:44 -08:00
2024-12-02 11:34:44 -08:00
2024-12-06 13:47:55 -08:00
2024-12-02 11:34:44 -08:00
2024-12-01 15:12:43 -08:00
2024-12-05 10:03:43 -08:00
2024-12-02 11:34:44 -08:00