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 iio:adis16080: Use spi_sync_transfer() 2013-10-05 11:58:54 +01:00
adis16130.c iio: gyro: adis16130: Use devm_iio_device_register 2013-11-24 21:07:17 +00:00
adis16136.c iio: gyro: adis16136: Use devm_iio_device_alloc 2013-08-17 15:50:54 +01:00
adis16260.c iio: adis: Switch sampling frequency attr to core support. 2014-07-07 09:44:17 +01:00
adxrs450.c iio: gyro: adxrs450: Use devm_iio_device_register 2013-11-24 21:07:18 +00:00
bmg160.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
hid-sensor-gyro-3d.c iio: gyro: hid-sensor-gyro-3d: Fix memory leak in probe() 2015-05-17 09:09:49 +01:00
itg3200_buffer.c iio: gyro: itg3200: Fix indio_dev->trig assignment 2014-08-25 21:49:00 +01:00
itg3200_core.c iio: gyro: itg3200: add suspend/resume support. 2015-03-09 14:54:42 +00:00
Kconfig iio: gyro: bmi055 gyro sensor driver 2014-09-14 18:40:42 +01:00
Makefile iio: common: ssp_sensors: Add sensorhub gyroscope sensor 2015-01-29 18:49:56 +00:00
ssp_gyro_sensor.c iio: common: ssp_sensors: Add sensorhub gyroscope sensor 2015-01-29 18:49:56 +00:00
st_gyro_buffer.c iio:st_gyro: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:46 +01:00
st_gyro_core.c IIO: Add support for L3GD20H gyroscope 2015-03-28 11:13:35 +00:00
st_gyro_i2c.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_gyro_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_gyro.h iio:gyro: Removed unnecessary parameter on common_probe function 2014-10-04 11:24:52 +01:00