summaryrefslogtreecommitdiffstats
path: root/fs/sysv
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2016-06-02 16:00:09 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-06-08 10:08:12 +0200
commitd15d6cf91695674fbabac3b1d2c8a269d9bab5c6 (patch)
tree292389e5b2bc098989c727326858132af43450b0 /fs/sysv
parentaf8c34ce6ae32addda3788d54a7e340cad22516b (diff)
downloadlinux-d15d6cf91695674fbabac3b1d2c8a269d9bab5c6.tar.gz
linux-d15d6cf91695674fbabac3b1d2c8a269d9bab5c6.tar.bz2
linux-d15d6cf91695674fbabac3b1d2c8a269d9bab5c6.zip
gpio: 104-dio-48e: Fix control port offset computation off-by-one error
There are only two control ports, each controlling three distinct I/O ports. To compute the control port address offset for a respective I/O port, the I/O port address offset should be divided by 3; dividing by 2 may result in not only the wrong address offset but possibly also an out-of-bounds array memory access for a non-existent third control port. Fixes: 1b06d64f7374 ("gpio: Add GPIO support for the ACCES 104-DIO-48E") Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions