zephyr/drivers/console
Erwan Gouriou 2716cbcaa6 drivers: susbsys: Check errors on devices selected using dt macro
Some Kconfig defined devices may be defined using dt_chosen_label
function. Since there is no way to ensure a device enabled in dts
is also defined in Kconfig, it may happen that instance is not
actually defined.
In this case device_get_binding might return 0, leading to undefined
behavior in the function that calls it.
When not already done, systematically check return of function
device_get_binding on devices defined through dt_chosen_label macro.
Trigger ASSERT when required and return error when possible.

Fixes #20068

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2020-05-25 11:43:14 +02:00
..
CMakeLists.txt console: Add semihosting console 2020-05-07 23:33:38 -05:00
gsm_mux.c drivers: gsm_mux: Convert to use k_timeout_t 2020-04-17 10:15:54 +03:00
gsm_mux.h drivers: gsm_mux: Convert to use k_timeout_t 2020-04-17 10:15:54 +03:00
ipm_console_receiver.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ipm_console_sender.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
Kconfig console: Add semihosting console 2020-05-07 23:33:38 -05:00
Kconfig.gsm_mux drivers: gsm_mux: Support GSM 07.10 muxing protocol 2020-04-17 10:15:54 +03:00
native_posix_console.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
ram_console.c cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
rtt_console.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
semihost_console.c console: Add semihosting console 2020-05-07 23:33:38 -05:00
uart_console.c drivers: susbsys: Check errors on devices selected using dt macro 2020-05-25 11:43:14 +02:00
uart_mcumgr.c treewide: use full path to console/uart_mcumgr.h header 2020-01-26 17:52:12 +01:00
uart_mux.c device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
uart_mux_internal.h drivers: console: uart_mux: Initial UART muxing support 2020-04-17 10:15:54 +03:00
uart_pipe.c treewide: use full path to console/uart_pipe.h header 2020-01-26 17:52:12 +01:00
xtensa_sim_console.c console: xtensa_sim_console: Cleanup and use static keyword 2020-03-11 09:17:38 -04:00