Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio:imu:mpu6050: Fixed segfault in Invensens MPU driver due to null d…
…ereference The driver segfaults when the kernel boots with device tree as the platform data is then not present and the pointer is deferenced without checking it is not null. This patch introduces such a check avoiding the crash. Signed-off-by: Atilla Filiz <atilla.filiz@essensium.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Cc: Stable@vger.kernel.org
- Loading branch information