From: Ricardo Ribalda Delgado Date: Wed, 14 Aug 2013 21:23:51 +0000 (-0700) Subject: leds-pca963x: Fix device tree parsing X-Git-Tag: v3.12-rc1~32^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a6acd648c1dfdc82f1bbcd15f7777962054c268;p=pandora-kernel.git leds-pca963x: Fix device tree parsing 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 Signed-off-by: Bryan Wu --- Reading git-diff-tree failed