Simon Glass
d138792112
dm: core: Fix lists_bind_fdt() using non-existent of_match
...
The call to device_bind_with_driver_data() passes id->data but if
the entry has no of_match then the id has not been set by the selected
driver.
Normally this passes unnoticed since a previous driver likely had an
of_match value, so the id is set to that. Of course it is not correct
to pass the id->data from a different driver.
With clang-14 the driver ordering is such that the id is never actually
set in the 'bind /usb@1 usb_ether' line in test_bind_unbind_with_node()
thus causing a crash.
Fix this by passing 0 if the of_match for a driver does not exist.
Signed-off-by: Simon Glass <sjg@chromium.org >
2022-10-29 07:36:33 -06:00
..
2022-04-25 09:25:00 +02:00
2022-09-25 08:30:05 -06:00
2021-09-30 08:08:56 -04:00
2022-08-12 08:14:23 -04:00
2022-10-17 21:17:12 -06:00
2022-10-11 15:40:48 -04:00
2022-08-23 12:39:06 +02:00
2022-06-17 16:27:05 +08:00
2022-10-24 10:04:30 -04:00
2022-10-29 07:36:33 -06:00
2022-10-17 21:17:12 -06:00
2022-10-26 15:21:11 -04:00
2022-10-24 11:34:33 +02:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2022-10-18 13:40:40 -04:00
2022-08-04 16:18:47 -04:00
2022-10-12 08:55:31 -04:00
2022-10-10 12:28:08 +02:00
2022-06-23 12:58:19 -04:00
2022-10-29 07:36:33 -06:00
2022-01-13 07:57:49 -05:00
2022-09-23 15:09:15 -04:00
2022-10-21 13:47:56 -04:00
2022-07-25 09:38:47 -04:00
2022-07-08 10:56:45 -04:00
2022-09-26 14:23:29 +02:00
2022-10-26 15:21:12 -04:00
2022-09-14 15:23:03 -04:00
2022-10-24 21:28:14 -04:00
2022-10-23 10:52:16 +05:30
2022-01-13 07:57:49 -05:00
2022-10-21 16:04:39 -04:00
2022-09-19 16:07:12 -04:00
2022-10-17 21:17:12 -06:00
2022-10-18 09:48:22 -04:00
2022-10-19 14:15:02 +01:00
2022-10-26 11:47:25 +09:00
2022-09-23 15:09:15 -04:00
2022-08-20 22:45:00 -04:00
2022-10-19 19:30:48 +08:00
2021-10-05 08:50:15 -04:00
2022-02-08 11:00:03 -05:00
2022-09-26 14:23:29 +02:00
2022-09-14 15:23:03 -04:00
2022-07-21 10:14:04 +02:00
2022-09-25 13:59:50 -06:00
2022-10-17 21:17:12 -06:00
2022-10-12 08:56:24 -04:00
2022-10-10 12:28:08 +02:00
2022-07-08 09:05:47 -04:00
2022-10-16 12:23:22 +02:00
2021-10-31 08:46:44 -04:00
2022-10-17 21:17:12 -06:00
2022-09-16 11:05:16 -04:00
2022-10-11 16:03:03 -04:00
2022-10-06 10:15:35 +02:00
2022-09-03 16:59:05 +03:00
2022-05-03 21:39:22 +02:00
2022-10-17 21:17:12 -06:00
2022-10-17 21:17:12 -06:00
2022-10-17 21:17:12 -06:00
2022-10-17 21:17:12 -06:00
2022-10-24 11:10:21 +02:00
2022-10-17 21:17:12 -06:00
2022-06-23 12:58:18 -04:00
2022-09-16 11:05:16 -04:00