From: Atilla Filiz Date: Fri, 11 Apr 2014 14:51:23 +0000 (+0200) Subject: iio:imu:mpu6050: Fixed segfault in Invensens MPU driver due to null dereference X-Git-Tag: omap-for-v3.16/fixes-against-rc1~217^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9b3a41893c3f1be67b5aacfa525969914bea0e9;p=pandora-kernel.git iio:imu:mpu6050: Fixed segfault in Invensens MPU driver due to null dereference 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 Signed-off-by: Jonathan Cameron Cc: Stable@vger.kernel.org --- Reading git-diff-tree failed