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>
Sat, 5 Mar 2016 17:51:10 +0000 (17:51 +0000)
commitc816d9e7a57bd436b2cff8f48b0e8cff128f05db
tree61d6daee8ca6adeb27da41a03883f198bf8c249f
parent96c0cb2bbfe0a58bd0c37cf34d50a20f9cd75aa8
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