]> asedeno.scripts.mit.edu Git - linux.git/commit
backlight: pwm: Clean-up pwm requested using legacy API
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Sat, 11 Oct 2014 13:46:26 +0000 (16:46 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 10 Nov 2014 14:42:18 +0000 (14:42 +0000)
commitedf387b6d1a6993103ec95ed934a6daf559535f4
tree2510d4c001381b7eefcdcdd0a2bf16b77c00f579
parent0df1f2487d2f0d04703f142813d53615d62a1da4
backlight: pwm: Clean-up pwm requested using legacy API

If PWM device is requested by means of legacy API pwm_request(), its
resources are not freed on module unbind, which may cause an oops on
access, e.g. by reading /sys/kernel/debug/pwm.

Reported-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c