]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "backlight: fix memory leak on obscure error path"
authorJiri Kosina <jkosina@suse.cz>
Mon, 30 Jul 2012 08:40:28 +0000 (10:40 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 30 Jul 2012 08:40:28 +0000 (10:40 +0200)
commit13465393c88be0585457adc867c1407418825138
tree2407e5a6c463e4a4a0e4063fbc4b693aee1362be
parent10bc53855c32a7e8dd4a96474c4afae60c120d63
Revert "backlight: fix memory leak on obscure error path"

This reverts commit 606a9de862a22d957f6e93746c3535bceffeacf2.

'data' is being allocated by devm_kzalloc(), is it's actually
wrong to free() it in the error path, as it will be destroyed
properly later.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/video/backlight/88pm860x_bl.c