zephyr/subsys
Marcin Niestroj c2543ddbfa shell: fix race condition in shell instance initialization
So far shell transport was initialized early before any k_poll events
and signals. transport_evt_handler() was passed as callback to transport
initializer and could be executed right away. This was true for example
with shell_uart when it enabled interrupts on RX and there were already
some bytes to read. As a result executed transport_evt_handler() is
operating on uninitialized k_poll signals.

Address this race condition by simply initializing shell transport when
everything is ready for processing data, i.e. on the end of shell
instance initialization.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2020-01-28 17:24:46 -05:00
..
bluetooth Bluetooth: controller: Support SMI TX flag as setting 2020-01-28 20:28:50 +01:00
canbus canbus: canopen: Fix broken CANOPEN_STORAGE_HANDLER_ERASES_EEPROM ref. 2020-01-25 08:15:53 -05:00
console console: Have CONSOLE_GET{CHAR,LINE} dep. on SERIAL_SUPPORT_INTERRUPT 2020-01-28 12:56:50 -06:00
cpp treewide: avoid use of unsupported C++ specifiers 2019-12-13 17:19:54 -06:00
debug debug: tracing: Fix time returned by CPU stats module 2020-01-20 13:55:11 -05:00
dfu dts: Rename generated_dts_board*.{h,conf} to devicetree*.{h,conf} 2020-01-17 17:57:59 +01:00
disk treewide: use full path to spi.h header 2020-01-26 17:52:12 +01:00
fb kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
fs treewide: use full path to flash.h header 2020-01-26 17:52:12 +01:00
jwt kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
logging logging: rtt: Improve synchronous mode 2020-01-14 11:19:10 -05:00
mgmt treewide: use full path to console/uart_mcumgr.h header 2020-01-26 17:52:12 +01:00
net net: mqtt: mqtt_live should only return success when ping sent 2020-01-28 15:45:08 -05:00
power power: policy: recover deep sleep states from residency policy. 2020-01-26 11:13:22 -08:00
random random: rand32_ctr_drbg: Handle error in initialize function 2020-01-28 13:31:52 -08:00
settings settings: Deprecate base64 in fs backed settings 2020-01-16 10:21:29 -05:00
shell shell: fix race condition in shell instance initialization 2020-01-28 17:24:46 -05:00
stats cleanup: include/: move stats.h to stats/stats.h 2019-06-27 22:55:49 -04:00
storage kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
testsuite arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
usb usb: netusb: Replace IS_ENABLED(VERBOSE_DEBUG) with just VERBOSE_DEBUG 2020-01-25 08:14:41 -05:00
CMakeLists.txt canbus: canopen: add zephyr driver layer for CANopenNode 2020-01-20 17:17:23 +01:00
Kconfig canbus: canopen: add zephyr driver layer for CANopenNode 2020-01-20 17:17:23 +01:00