zephyr/subsys/shell
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
..
modules device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
CMakeLists.txt
Kconfig shell: Move default terminal width and height to Kconfig 2020-05-13 11:28:41 +02:00
Kconfig.backends
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c shell: Move default terminal width and height to Kconfig 2020-05-13 11:28:41 +02:00
shell_dummy.c shell: Extend dummy backend to record for testing 2020-05-07 10:04:28 +02:00
shell_fprintf.c
shell_help.c shell: Refactor command getters 2020-04-23 18:30:41 +02:00
shell_help.h
shell_history.c
shell_log_backend.c
shell_ops.c
shell_ops.h shell: Move default terminal width and height to Kconfig 2020-05-13 11:28:41 +02:00
shell_rtt.c
shell_telnet_protocol.h
shell_telnet.c
shell_uart.c drivers: susbsys: Check errors on devices selected using dt macro 2020-05-25 11:43:14 +02:00
shell_utils.c shell: Refactor command execution to enable raw arguments 2020-05-07 23:47:39 -05:00
shell_utils.h shell: Move default terminal width and height to Kconfig 2020-05-13 11:28:41 +02:00
shell_vt100.h
shell_wildcard.c shell: Refactor command getters 2020-04-23 18:30:41 +02:00
shell_wildcard.h shell: Refactor command getters 2020-04-23 18:30:41 +02:00
shell.c shell: Move default terminal width and height to Kconfig 2020-05-13 11:28:41 +02:00