linux/drivers/iio/gyro
Fabio Estevam d8c9d23e29 iio: gyro: hid-sensor-gyro-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:49 +01:00
..
adis16080.c
adis16130.c
adis16136.c
adis16260.c
adxrs450.c
bmg160.c
hid-sensor-gyro-3d.c
itg3200_buffer.c
itg3200_core.c
Kconfig
Makefile
ssp_gyro_sensor.c
st_gyro.h
st_gyro_buffer.c
st_gyro_core.c
st_gyro_i2c.c
st_gyro_spi.c