]> git.baikalelectronics.ru Git - kernel.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>
Mon, 15 Oct 2012 18:50:03 +0000 (20:50 +0200)
commit37f5084fac9375c22d9212670d5c87fa435d06c5
treeaadfd22e7968442d04fa651eab2c64d37b4c9d87
parent0d577442d51c1c4ffe9f108f9f6058d85b2c42c9
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