2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 15:43:59 +08:00
linux-next/drivers/iio/orientation
Fabio Estevam 2bd0462843 iio: orientation: hid-sensor-rotation: 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:10:25 +01:00
..
hid-sensor-incl-3d.c iio: orientation: hid-sensor-incl-3d: Fix memory leak in probe() 2015-05-17 09:10:14 +01:00
hid-sensor-rotation.c iio: orientation: hid-sensor-rotation: Fix memory leak in probe() 2015-05-17 09:10:25 +01:00
Kconfig iio: hid-sensors: Added device rotation support 2014-04-29 22:11:53 +01:00
Makefile iio: hid-sensors: Added device rotation support 2014-04-29 22:11:53 +01:00