Go to file
Iván Briano aba245daad drivers qmsi: Fix power management with reentrancy disabled
The new device control API added a 'device_power_state' variable to the
driver's data structure to keep track of the current power state set
for a device. This member variable is conditionally built into the
runtime data structure of each driver, but in some cases the whole data
structure is conditional on its respective API_REENTRANCY config
variable.

In those cases where the runtime data was previously used only for
reentrancy protection, the runtime data pointer used for device
initialization is NULL, and when power management is enabled, this
invalid pointer ends up dereferenced to get the device_power_state
member.

Make the declaration of the runtime data dependent on any of its
conditional members, and NULL only when all of those settings are
disabled.

Change-Id: I4f41e00ad8551a096db639e31d33f43752b6672f
Signed-off-by: Iván Briano <ivan.briano@intel.com>
2016-10-05 09:51:09 +00:00
.known-issues known-issues: update rule for TCF summary line 2016-09-16 11:31:27 -07:00
arch intstub.S: fix argument to _sys_power_save_idle_exit on IAMCU 2016-09-28 20:28:27 +00:00
boards frdm_k64f: Add support for RGB LEDs 2016-10-04 01:29:14 +00:00
doc ztest: Add documentation 2016-09-30 21:17:40 +00:00
drivers drivers qmsi: Fix power management with reentrancy disabled 2016-10-05 09:51:09 +00:00
ext ksdk: Build ksdk fsl_enet.c and fsl_phy.c 2016-09-23 01:53:50 +00:00
fs fs: Add file system API to flush cache of an open file 2016-09-23 00:06:32 +00:00
include Merge "Merge bluetooth branch into master" 2016-10-05 09:26:37 +00:00
kernel unified: Fix building of the unified kernel 2016-10-04 18:11:05 -03:00
lib iot/zoap: Fix comparing pointers of different signedness 2016-10-04 12:29:07 +00:00
misc arduino 101: make factory bootloader config the default 2016-09-17 11:13:59 +00:00
net Bluetooth: L2CAP: Rename br_channels to br_fixed_channels 2016-10-04 15:44:45 +00:00
samples Merge bluetooth branch into master 2016-10-04 18:48:00 +03:00
scripts sanitycheck: Remove linker VMA/LMA offset checking 2016-10-05 09:48:54 +00:00
tests Merge "Merge bluetooth branch into master" 2016-10-05 09:26:37 +00:00
usb usb: do not assert on a variable we do not have 2016-09-24 08:12:35 -04:00
.checkpatch.conf checkpatch: do not check for min_t/max_t 2016-09-13 17:12:55 -04:00
.gitattributes
.gitignore testcases: instruct git to ignore *log and outdir-* 2016-06-14 22:01:34 +00:00
.gitreview Add a .gitreview file 2016-02-20 14:25:01 +00:00
.mailmap mailmap: Fix broken author information for Evan Couzens 2016-08-08 21:24:49 +00:00
defaults.tc boards: rename Quark SE Devboard to Quark SE C1000 2016-09-16 03:10:31 +00:00
Kbuild unified/build: adapt Kbuild for unified kernel 2016-09-13 17:12:55 -04:00
Kconfig kconfig: Do not put architecture in the title 2016-03-14 16:50:51 -04:00
Kconfig.zephyr tests: Add a generic testing framework 2016-09-30 21:17:39 +00:00
LICENSE
MAINTAINERS boards: Rename the nRF52 Nitrogen to 96Boards Nitrogen 2016-09-30 17:13:39 +00:00
Makefile check_link_map: rewrite in python 2016-10-05 09:48:54 +00:00
Makefile.inc win-build: fixes to build with alternative make implementations 2016-09-12 12:28:14 +00:00
zephyr-env.sh zephyr-env.sh: prepend to PATH 2016-08-05 20:38:08 +00:00