]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpio-timberdale: fix a potential wrapping issue
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 06:56:35 +0000 (09:56 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Oct 2012 21:01:14 +0000 (23:01 +0200)
commit68876cee56b17bd5ca8f16545ffb677b2b22d060
tree488a1a217bbd7942e3d59ff13fdaf5fc172a7cdc
parentccff9b1db693062b0a9c9070f4304deb47ef215c
gpio-timberdale: fix a potential wrapping issue

->last_ier is an unsigned long but the high bits can't be used int the
original code because the shift wraps.

Cc: stable@kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-timberdale.c