iio: imu: mpu6050: fix possible NULL dereferences
authorMatt Ranostay <matt.ranostay@intel.com>
Thu, 3 Mar 2016 03:18:12 +0000 (19:18 -0800)
committerJonathan Cameron <jic23@kernel.org>
Wed, 4 May 2016 07:42:00 +0000 (08:42 +0100)
commit140afdd9626cdaaf54223e82931213de785c7c94
tree9ba1b9bab9c5dfbc602b8a3807997ad18d6f7810
parent431adc0aeca68d257bd705db50f73e4c19e5690d
iio: imu: mpu6050: fix possible NULL dereferences

Fix possible null dereferencing of i2c and spi driver data.

Signed-off-by: Matt Ranostay <matt.ranostay@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c
drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c