]> 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)
commitf317833ae7f8737262daca03c9ea401e43ae6315
tree63f4afcc754bfbdfaddc64231d2d678526fd0bb7
parent53d23582b635d7d0c136aa7fa57db014b486dbf2
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: 82ccb7ab2a2b ("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