git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a1740
)
leds-pca963x: Fix device tree parsing
author
Ricardo Ribalda Delgado
<ricardo.ribalda@gmail.com>
Wed, 14 Aug 2013 21:23:51 +0000
(14:23 -0700)
committer
Bryan Wu
<cooloney@gmail.com>
Tue, 27 Aug 2013 00:22:14 +0000
(17:22 -0700)
A malformed device tree could lead into a segmentation fault if the reg
value of a led is bigger than the number of leds.
A valid device tree could have only information about the last led of the
chip. Fix the device tree parsing to handle those cases.
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
No differences found