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)
This reverts commit 9ea3c498962bc63748e92c31c874169ab0726324.

'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>

No differences found