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