summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-05-13 20:06:13 +0200
committerJonathan Cameron <jic23@kernel.org>2015-05-17 10:10:25 +0200
commit2bd04628435ff57a2fefa71e7d3e5c005db5c978 (patch)
tree3876a2f8d0b69cde24a89ee673b6def7a5ff58e2 /arch
parentiio: orientation: hid-sensor-incl-3d: Fix memory leak in probe() (diff)
downloadlinux-2bd04628435ff57a2fefa71e7d3e5c005db5c978.tar.xz
linux-2bd04628435ff57a2fefa71e7d3e5c005db5c978.zip
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions