linux/drivers/iio/accel
Fabio Estevam b136faff9b 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>
2015-05-17 09:09:05 +01:00
..
bma180.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
bmc150-accel.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
hid-sensor-accel-3d.c iio: accel: hid-sensor-accel-3d: Fix memory leak in probe() 2015-05-17 09:09:05 +01:00
Kconfig iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
kxcjk-1013.c iio: accel: kxcjk-1013: add some blank lines for readability 2015-05-07 10:42:31 +01:00
kxsd9.c iio:accel:kxsd9 fix missing mutex unlock 2013-11-17 15:22:00 +00:00
Makefile iio: add driver for Freescale MMA9553 2015-01-30 20:34:59 +00:00
mma8452.c iio: accel: mma8452: Remove trailing whitespace 2015-01-01 12:12:09 +00:00
mma9551_core.c iio: accel: mma9551_core: typo fix in RSC APP ID 2015-04-26 19:46:17 +01:00
mma9551_core.h iio: accel: mma9551_core: typo fix in RSC APP ID 2015-04-26 19:46:17 +01:00
mma9551.c iio: accel: mma9551: Check gpiod_to_irq return value 2015-03-09 13:27:49 +00:00
mma9553.c iio: accel: mma9553: fix gpio bitnum init value 2015-04-26 19:52:35 +01:00
ssp_accel_sensor.c iio: common: ssp_sensors: Add sensorhub accelerometer sensor 2015-01-29 18:49:56 +00:00
st_accel_buffer.c iio:st_accel: Drop redundant call to iio_sw_buffer_preenable() 2013-10-16 19:11:11 +01:00
st_accel_core.c iio: st-sensors: add support for lis3lv02d accelerometer 2015-03-28 10:55:36 +00:00
st_accel_i2c.c iio: st-sensors: add support for lis3lv02d accelerometer 2015-03-28 10:55:36 +00:00
st_accel_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_accel.h iio: st-sensors: add support for lis3lv02d accelerometer 2015-03-28 10:55:36 +00:00