Commits
![Fabio Estevam](https://secure.gravatar.com/avatar/0b451a153bd7ca2964beefc04cd341aa.jpg?s=96&d=mm)
Fabio Estevam committed 2bd04628435
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>