iio: imu: inv_mpu6050: Prevent dereferencing NULL
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 9 Jan 2015 23:13:37 +0000 (15:13 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 10 Jan 2015 22:07:50 +0000 (22:07 +0000)
commit4f33fbae555000bf73aaacbc4f5b24668afc8c7a
treed30a77c6c0b9ccb0644d01f0900c9f1e5d971173
parentf2229ab8611e6e79992b6357db3fb4faf70e74a9
iio: imu: inv_mpu6050: Prevent dereferencing NULL

When id is null, with ACPI enumeration, don't dereference it.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c