From: Fabio Estevam Date: Wed, 13 May 2015 18:06:09 +0000 (-0300) Subject: iio: accel: hid-sensor-accel-3d: Fix memory leak in probe() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~628^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b136faff9bc2f4adea050ed2119c01199f9a86a5;p=pandora-kernel.git iio: accel: hid-sensor-accel-3d: 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 Reviewed-by: Srinivas Pandruvada Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed