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:
121dcb7
)
gpio: Prevent an integer overflow in the pca953x driver
author
Joshua Scott
<joshua.scott@alliedtelesis.co.nz>
Fri, 22 May 2015 00:35:12 +0000
(12:35 +1200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 1 Jun 2015 14:53:55 +0000
(16:53 +0200)
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>
drivers/gpio/gpio-pca953x.c
patch
|
blob
|
history
diff --cc
drivers/gpio/gpio-pca953x.c
Simple merge