]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: gpio-xilinx: Fix integer overflow
authorSrinivas Neeli <srinivas.neeli@xilinx.com>
Thu, 21 Jul 2022 07:39:09 +0000 (13:09 +0530)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 22 Jul 2022 07:17:03 +0000 (09:17 +0200)
commit7c2c7c4d528cb2e20a2b8032e53dd70b2f19b3c7
tree63f4afcc754bfbdfaddc64231d2d678526fd0bb7
parent8be46e4151d1bf9e884b214d11e0d1eee3885293
gpio: gpio-xilinx: Fix integer overflow

Current implementation is not able to configure more than 32 pins
due to incorrect data type. So type casting with unsigned long
to avoid it.

Fixes: d61f62821298 ("xilinx: Switch to use bitmap APIs")
Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-xilinx.c