commit | 83dfc8e70ccfb866034c7d8a35ba383b72f45d60 | [log] [tgz] |
---|---|---|
author | Denis Ciocca <denis.ciocca@st.com> | Fri May 12 12:06:30 2017 +0800 |
committer | Dmitry Shmidt <dimitrysh@google.com> | Fri May 12 09:09:31 2017 -0700 |
tree | 16ce2a4db1c9e0654dd8eb3cdfca6abe638de143 | |
parent | d8d03ec63f538458fda2105132a76aaf719af2f3 [diff] |
nanohub:drivers:st_lsm6dsm: fix array index issue that cause hard fault samplesCounter[] array is indexed by SensorFifoIndex and not by SensorIndex. With wrong indexing sometimes pushData function was called while no memory was allocated for sensor data. The patch 1870f068 show immediatly the access to memory location 0 causing hard fault. Change-Id: I891b2a720faa0e7062694b6c558f3f28c6a0f4cc Signed-off-by: Denis Ciocca <denis.ciocca@st.com>