]> Git Repo - linux.git/commit
iio: light: hid-sensor-prox: Fix memory leak in probe()
authorFabio Estevam <[email protected]>
Thu, 7 May 2015 23:32:04 +0000 (20:32 -0300)
committerJonathan Cameron <[email protected]>
Tue, 12 May 2015 19:01:13 +0000 (20:01 +0100)
commitf0828ba96d02d4d4b197c531b34c662ee3c928df
treed722023606d70fd61f4af731d8069d30affcdc8b
parentf29b212edb9e253cafcb4a2ab7842a890989f1a5
iio: light: hid-sensor-prox: Fix memory leak in probe()

'channels' is allocated via kmemdup and it is never freed.

Use 'indio_dev->channels' directly instead, so that we avoid such
memory leak problem.

Reported-by: Alexey Khoroshilov <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/iio/light/hid-sensor-prox.c
This page took 0.050076 seconds and 4 git commands to generate.