zephyr/drivers/console
Christopher Friedt a05c88daa5 drivers: console: uart_console: avoid infinite loop in isr
Previously, the `uart_console_isr()` routine assumed that the
return value of several uart API functions would only ever
return the equivalent of a boolean value. In fact, an integer
is returned on occasion, and that integer can take on many
values.

Since unary operations would either go to "true" or "false"
and since any non-zero integer evaluates to "true", even a
return value of something like `-ENODEV` would evalueate
to true.

Explicitly compare against the integer-equivalent value of
the expected boolean output.

With this, in the case of errors, negative return values do
not evaluate to "true", and the infinite loop is avoied.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2023-09-25 09:51:45 +02:00
..
CMakeLists.txt drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
Kconfig drivers: console: deprecate uart_mux and gsm_mux 2023-09-19 15:25:47 +01:00
Kconfig.gsm_mux drivers: console: deprecate uart_mux and gsm_mux 2023-09-19 15:25:47 +01:00
efi_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
gsm_mux.c
gsm_mux.h all: Fix "#if IS_ENABLED(CONFIG_FOO)" occurrences 2022-12-21 10:09:23 +01:00
ipm_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
ipm_console_receiver.c
ipm_console_sender.c
jailhouse_debug_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
posix_arch_console.c drivers: Console: Move all posix arch boards to same driver 2023-05-26 12:57:41 +02:00
ram_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
rtt_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
semihost_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
uart_console.c drivers: console: uart_console: avoid infinite loop in isr 2023-09-25 09:51:45 +02:00
uart_mcumgr.c kernel: Modify the signature of k_mem_slab_free() 2023-09-03 18:20:59 -04:00
uart_mux.c iterable_sections: move to specific header 2023-05-22 10:42:30 +02:00
uart_mux_internal.h drivers: uart_mux: Fix documentation of uart_mux_recv() 2023-01-19 08:44:34 -06:00
winstream_console.c intel_adsp: move memory window setup to PRE_KERNEL_1 2023-09-20 15:17:14 +02:00
xtensa_sim_console.c init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00