Skip to content
Commit b6ac1280 authored by Joshua Scott's avatar Joshua Scott Committed by Linus Walleij
Browse files

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: default avatarJoshua Scott <joshua.scott@alliedtelesis.co.nz>
Reviewed-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 121dcb76
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment