summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-05-13 15:06:09 -0300
committerJonathan Cameron <jic23@kernel.org>2015-05-17 09:09:05 +0100
commitb136faff9bc2f4adea050ed2119c01199f9a86a5 (patch)
tree5fb0a0209ba4a0d111dc70ee0545ffdb6ec9a4b7 /drivers/iio/gyro
parent01e537f73335339196be3ef2bbfe53c20a6cb200 (diff)
downloadtalos-op-linux-b136faff9bc2f4adea050ed2119c01199f9a86a5.tar.gz
talos-op-linux-b136faff9bc2f4adea050ed2119c01199f9a86a5.zip
iio: accel: hid-sensor-accel-3d: Fix memory leak in probe()
'channels' is allocated via kmemdup and it is never freed in the subsequent error paths. Use 'indio_dev->channels' directly instead, so that we avoid such memory leak problem. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/gyro')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud