Go to file
Marti Bolivar 5fab97c9d0 net/mqtt: fix race condition in mqtt_init()
We need to set the mqtt context recv function prior to calling
net_context_recv which installs the mqtt_recv callback.
If not, we risk a race condition where an unprotected reference
to mqtt->rcv(mqtt, buf) is made in mqtt_recv().

Change-Id: If90ee58f4ea6f7879ef7c12b969ba27647426acc
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
2017-04-28 15:01:12 +03:00
.known-issues
arch
boards
doc
drivers
dts
ext
include
kernel
lib
misc
samples samples: net: dns_resolve: Clarify that DNS queries aren't immediate 2017-04-28 15:01:12 +03:00
scripts
subsys net/mqtt: fix race condition in mqtt_init() 2017-04-28 15:01:12 +03:00
tests
.checkpatch.conf
.gitattributes
.gitignore
.gitlint
.gitreview
.mailmap
.shippable.yml
defaults.tc
Kbuild
Kconfig
Kconfig.zephyr
LICENSE
MAINTAINERS
Makefile
Makefile.inc
Makefile.test
zephyr-env.sh