diff options
author | Atilla Filiz <atilla.filiz@essensium.com> | 2014-04-11 16:51:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-07 10:28:15 -0700 |
commit | edbfad5ceee721db176f03fb56070ff651b7f2e6 (patch) | |
tree | c973431b7865bff2ba67583dfe29fee11b1011d5 /drivers/usb | |
parent | c6229d9e33fe849bf6f7f16a7813550a1936806a (diff) |
iio:imu:mpu6050: Fixed segfault in Invensens MPU driver due to null dereference
commit b9b3a41893c3f1be67b5aacfa525969914bea0e9 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions