summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ep93xx.c
diff options
context:
space:
mode:
authorMichael Stickel <ms@mycable.de>2014-05-26 10:03:16 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-05-27 15:50:57 +0200
commit3e3bed913e8bbd78f38cefd5d575475f45c05dd0 (patch)
tree875487e1e3fae9917c72b375456019e118a9b82a /drivers/gpio/gpio-ep93xx.c
parent821e85f2a8433614b84cea194ac4f1302ef47ec9 (diff)
downloadblackbird-op-linux-3e3bed913e8bbd78f38cefd5d575475f45c05dd0.tar.gz
blackbird-op-linux-3e3bed913e8bbd78f38cefd5d575475f45c05dd0.zip
gpio: mcp23s08: fixed count variable for devicetree probing
Fixed missing increase of count variable for devicetree path in driver probing. The gpio-mcp23s08 driver has two paths for getting the platform registration information. One for the classic platform initialization and one for openfirmware devicetree based initialization. The devicetree based path is missing the increase of the count variable, which results in the count variable to become negative in the later use, where it is decreased. The count variable is used as an index into a vector. This results in accessing invalid memory space and can result in an exception. Tested this with an AM3352 SoC with two mcp23s17 on two chip selects as well as on a shared chip select. Signed-off-by: Michael Stickel <ms@mycable.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ep93xx.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud