Johan Hovold
f3e3c50c36
of: add helper to lookup compatible child node
...
[ Upstream commit 36156f9241 ]
Add of_get_compatible_child() helper that can be used to lookup
compatible child nodes.
Several drivers currently use of_find_compatible_node() to lookup child
nodes while failing to notice that the of_find_ functions search the
entire tree depth-first (from a given start node) and therefore can
match unrelated nodes. The fact that these functions also drop a
reference to the node they start searching from (e.g. the parent node)
is typically also overlooked, something which can lead to use-after-free
bugs.
Signed-off-by: Johan Hovold <johan@kernel.org >
Signed-off-by: Rob Herring <robh@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2018-12-01 09:46:35 +01:00
..
2016-08-10 11:49:24 +02:00
2018-12-01 09:46:34 +01:00
2018-11-21 09:27:42 +01:00
2018-08-24 13:27:00 +02:00
2018-07-03 11:21:30 +02:00
2016-10-28 03:01:34 -04:00
2017-03-15 09:57:14 +08:00
2016-10-16 17:36:14 +02:00
2018-04-13 19:50:17 +02:00
2018-04-13 19:50:10 +02:00
2018-08-06 16:24:36 +02:00
2018-05-02 07:53:42 -07:00
2018-11-27 16:08:01 +01:00
2018-10-13 09:11:35 +02:00
2018-10-10 08:52:09 +02:00
2015-12-07 14:14:03 -05:00
2015-11-10 15:00:03 -08:00
2015-11-10 14:48:36 -08:00
2017-02-01 08:30:53 +01:00
2018-05-30 07:49:13 +02:00
2016-09-07 08:32:45 +02:00
2016-03-09 15:34:52 -08:00
2018-04-08 11:51:57 +02:00
2018-04-24 09:32:12 +02:00
2018-04-24 09:32:12 +02:00
2016-08-20 18:09:24 +02:00
2015-12-09 10:35:16 -08:00
2015-11-11 09:37:34 -07:00
2018-07-03 11:21:35 +02:00
2018-11-10 07:41:37 -08:00
2017-12-09 18:42:43 +01:00
2018-01-31 12:06:08 +01:00
2017-01-12 11:22:50 +01:00
2016-05-04 14:48:49 -07:00
2017-06-14 13:16:23 +02:00
2016-05-11 11:21:11 +02:00
2018-07-22 14:25:51 +02:00
2018-07-22 14:25:51 +02:00
2018-07-03 11:21:28 +02:00
2015-11-20 16:17:32 -08:00
2016-02-17 12:30:57 -08:00
2015-11-10 12:06:23 +01:00
2017-07-05 14:37:20 +02:00
2018-08-15 17:42:09 +02:00
2015-12-02 23:50:33 +01:00
2018-11-10 07:41:43 -08:00
2018-04-08 11:51:57 +02:00
2017-10-12 11:27:35 +02:00
2018-01-10 09:27:10 +01:00
2018-05-30 07:48:52 +02:00
2017-03-22 12:04:15 +01:00
2016-10-28 03:01:26 -04:00
2016-04-12 09:08:39 -07:00
2018-02-25 11:03:46 +01:00
2016-08-16 09:30:49 +02:00
2018-08-06 16:24:36 +02:00
2018-05-26 08:49:00 +02:00
2015-11-18 16:27:46 -05:00
2018-05-26 08:48:56 +02:00
2015-12-11 11:05:57 -08:00
2017-05-14 13:32:59 +02:00
2015-11-10 09:33:06 -08:00
2017-07-15 11:57:44 +02:00
2018-02-25 11:03:53 +01:00
2018-01-17 09:35:30 +01:00
2018-06-16 09:54:26 +02:00
2017-06-17 06:39:36 +02:00
2018-01-10 09:27:10 +01:00
2016-09-30 10:18:37 +02:00
2017-08-06 19:19:42 -07:00
2016-01-07 12:17:39 -05:00
2017-12-16 10:33:54 +01:00
2017-05-14 13:32:59 +02:00
2015-11-20 16:17:32 -08:00
2016-05-11 11:21:13 +02:00
2018-04-24 09:32:07 +02:00
2015-11-09 15:11:24 -08:00
2016-02-17 12:30:57 -08:00
2018-11-21 09:27:44 +01:00
2018-10-20 09:52:38 +02:00
2016-09-07 08:32:44 +02:00
2018-11-21 09:27:42 +01:00
2016-04-20 15:42:02 +09:00
2018-04-29 07:50:05 +02:00
2018-02-25 11:03:54 +01:00
2018-09-09 20:04:35 +02:00
2018-09-09 20:04:36 +02:00
2018-01-02 20:33:25 +01:00
2016-09-24 10:07:43 +02:00
2018-04-08 11:51:57 +02:00
2017-01-19 20:17:19 +01:00
2016-07-27 09:47:29 -07:00
2018-02-22 15:45:01 +01:00
2018-11-27 16:07:57 +01:00
2018-01-23 19:50:12 +01:00
2015-11-09 15:11:24 -08:00
2016-10-28 03:01:30 -04:00
2017-10-27 10:23:18 +02:00
2015-12-12 10:15:34 -08:00
2017-05-25 14:30:17 +02:00
2015-11-28 19:33:29 -08:00
2018-01-31 12:06:08 +01:00
2017-04-08 09:53:32 +02:00
2018-07-17 11:31:43 +02:00
2017-03-18 19:09:58 +08:00
2017-09-02 07:06:51 +02:00
2017-07-21 07:44:56 +02:00
2018-04-08 11:51:59 +02:00
2015-11-23 09:44:58 +01:00
2017-06-17 06:39:36 +02:00
2015-11-17 15:25:43 -05:00
2015-11-10 12:06:16 +01:00
2017-10-27 10:23:17 +02:00
2017-06-14 13:16:26 +02:00
2016-08-16 09:30:51 +02:00
2017-02-09 08:02:47 +01:00
2018-09-19 22:49:00 +02:00
2018-11-21 09:27:44 +01:00
2017-12-20 10:04:59 +01:00
2015-12-18 14:25:40 -08:00
2017-12-25 14:22:09 +01:00
2017-12-16 10:33:50 +01:00
2018-01-05 15:44:24 +01:00
2018-11-27 16:07:58 +01:00
2017-04-30 05:49:28 +02:00
2016-11-15 07:46:37 +01:00
2016-11-15 07:46:37 +01:00
2018-02-25 11:03:48 +01:00
2016-07-11 09:31:11 -07:00
2018-10-20 09:52:36 +02:00
2017-12-05 11:22:49 +01:00
2017-02-01 08:30:53 +01:00
2016-03-03 15:07:28 -08:00
2015-11-23 21:57:44 -05:00
2018-07-25 10:18:27 +02:00
2016-10-07 15:23:41 +02:00
2015-11-10 17:27:12 -06:00
2015-11-16 09:03:21 +05:30
2015-12-09 09:23:28 -06:00
2015-11-12 11:50:33 -08:00
2018-12-01 09:46:35 +01:00
2017-12-16 10:33:51 +01:00
2017-11-24 08:32:25 +01:00
2018-03-22 09:23:22 +01:00
2017-09-13 14:09:45 -07:00
2016-12-08 07:15:24 +01:00
2018-01-05 15:44:26 +01:00
2017-02-09 08:02:46 +01:00
2016-09-15 08:27:46 +02:00
2017-11-21 09:21:22 +01:00
2018-01-17 09:35:29 +01:00
2017-08-24 17:02:36 -07:00
2016-06-07 18:14:35 -07:00
2016-10-31 04:13:58 -06:00
2018-03-24 10:58:40 +01:00
2017-11-15 17:13:11 +01:00
2015-11-23 09:44:58 +01:00
2017-08-06 19:19:43 -07:00
2017-06-14 13:16:20 +02:00
2016-11-10 16:36:37 +01:00
2018-11-10 07:41:35 -08:00
2017-06-14 13:16:23 +02:00
2015-12-04 14:38:26 -05:00
2018-08-09 12:19:28 +02:00
2016-02-25 12:01:21 -08:00
2018-09-19 22:49:00 +02:00
2015-11-19 16:22:43 +01:00
2018-07-25 10:18:27 +02:00
2016-10-28 03:01:32 -04:00
2017-08-06 19:19:42 -07:00
2016-09-07 08:32:44 +02:00
2018-01-17 09:35:29 +01:00
2016-03-03 15:07:23 -08:00
2018-05-26 08:48:54 +02:00
2018-10-13 09:11:34 +02:00
2017-08-11 09:08:58 -07:00
2018-10-10 08:52:08 +02:00
2016-09-30 10:18:37 +02:00
2016-07-11 09:31:11 -07:00
2015-12-12 10:15:34 -08:00
2018-02-25 11:03:36 +01:00
2018-05-30 07:48:55 +02:00
2016-10-28 03:01:34 -04:00
2018-08-15 17:42:10 +02:00
2015-11-25 15:49:13 +00:00
2016-10-07 15:23:46 +02:00
2018-09-05 09:18:40 +02:00
2018-11-21 09:27:36 +01:00
2018-10-13 09:11:34 +02:00
2016-04-12 09:08:35 -07:00
2018-08-15 17:42:05 +02:00
2016-09-15 08:27:47 +02:00
2018-05-26 08:49:00 +02:00
2017-10-21 17:09:02 +02:00
2016-03-16 08:42:58 -07:00
2017-09-27 11:00:13 +02:00
2018-05-02 07:53:40 -07:00
2015-11-25 15:49:13 +00:00
2018-11-27 16:08:02 +01:00
2016-03-03 15:07:08 -08:00
2016-12-10 19:07:25 +01:00
2015-11-23 09:44:58 +01:00
2016-04-20 15:42:07 +09:00
2017-12-09 18:42:43 +01:00
2018-01-31 12:06:11 +01:00
2017-07-27 15:06:07 -07:00
2018-05-02 07:53:40 -07:00
2018-09-19 22:49:00 +02:00
2018-09-19 22:49:00 +02:00
2015-12-29 17:45:49 -08:00
2015-12-13 14:30:59 -08:00
2018-03-18 11:17:48 +01:00
2016-03-09 15:34:52 -08:00
2015-11-13 20:34:33 -05:00