summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-stp-xway.c
diff options
context:
space:
mode:
authorJoshua Scott <joshua.scott@alliedtelesis.co.nz>2015-05-22 03:35:12 +0300
committerLinus Walleij <linus.walleij@linaro.org>2015-06-01 17:53:55 +0300
commitb6ac1280b6969607c5a01e316cc4ab693490c333 (patch)
tree08f9f9f49b0014d3942d9cf34b5280aff50239ef /drivers/gpio/gpio-stp-xway.c
parent121dcb760426ca67ee90a8b2db6a75eee010f8e3 (diff)
downloadlinux-b6ac1280b6969607c5a01e316cc4ab693490c333.tar.xz
gpio: Prevent an integer overflow in the pca953x driver
Interrupts were missed if an 8-bit integer overflow occurred. This was observed when bank0,pin7 and bank1,pin7 changed simultaniously. As the 8-bit totals were only checked against zero, replace them with booleans. Name the booleans so that their purpose is clear. Signed-off-by: Joshua Scott <joshua.scott@alliedtelesis.co.nz> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-stp-xway.c')
0 files changed, 0 insertions, 0 deletions