aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/light
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-05-13 15:06:14 -0300
committerJonathan Cameron <jic23@kernel.org>2015-05-17 09:10:33 +0100
commitc24e7daf823256c83ce3efe6fa9b9b8ab5b78480 (patch)
treee47a7700d2a5e1f59053362ca9fbe2c2f6039611 /drivers/iio/light
parentiio: orientation: hid-sensor-rotation: Fix memory leak in probe() (diff)
downloadlinux-dev-c24e7daf823256c83ce3efe6fa9b9b8ab5b78480.tar.xz
linux-dev-c24e7daf823256c83ce3efe6fa9b9b8ab5b78480.zip
iio: pressure: hid-sensor-press: 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/light')
0 files changed, 0 insertions, 0 deletions