Files
u-boot/drivers
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
2022-09-16 11:05:16 -04:00
2022-08-04 16:18:47 -04:00
2022-10-26 15:21:12 -04: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-19 14:15:02 +01:00
2022-10-16 12:23:22 +02:00
2022-09-16 11:05:16 -04:00
2022-10-11 16:03:03 -04: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-09-16 11:05:16 -04:00