Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1392da24 authored by Puneet Yatnal's avatar Puneet Yatnal
Browse files

drivers: iio: imu: Fix NULL pointer dereference in IMU drivers



The early buffer feature enablement for all 3 sensors SMI130, ASM330
and IAM20680 does not has synchronisation between early buffer read
and write, due to that when user application deletes the memory allocated
for early buffer data,the driver still try to write the data which inturn
lead to NULL pointer derefernce.The issue is solved by proper
synchronisation between read and write to early buffer memory by
using mutex lock.

Change-Id: I1f96d662e445dad8f6c732bfe4bf59716c7024fc
Signed-off-by: default avatarPuneet Yatnal <puneet@codeaurora.org>
parent ce6cc54c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment