diff options
author | Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> | 2009-08-26 14:29:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-08-26 20:06:53 -0700 |
commit | 48cccd26f36511ddb6aeca07485ecf2829683907 (patch) | |
tree | 713e481085d33d73a8cf43131317db6c4aa206aa /mm | |
parent | bdf57de4e6abc389cc3f3bd94ec15cce74cf6f4b (diff) | |
download | blackbird-op-linux-48cccd26f36511ddb6aeca07485ecf2829683907.tar.gz blackbird-op-linux-48cccd26f36511ddb6aeca07485ecf2829683907.zip |
leds: fix multiple requests and releases of IRQ for GPIO LED Trigger
When setting the same GPIO number, multiple IRQ shared requests will be
done without freing the previous request. It will also try to free a
failed request or an already freed IRQ if 0 was written to the gpio file.
All these oops and leaks were fixed with the following solution: keep the
previous allocated GPIO (if any) still allocated in case the new request
fails. The alternative solution would desallocate the previous allocated
GPIO and set gpio as 0.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Samuel R. C. Vale <srcvale@holoscopio.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions