git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01e537f
)
iio: accel: hid-sensor-accel-3d: Fix memory leak in probe()
author
Fabio Estevam
<fabio.estevam@freescale.com>
Wed, 13 May 2015 18:06:09 +0000
(15:06 -0300)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 17 May 2015 08:09:05 +0000
(09:09 +0100)
'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>
No differences found