summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-aspeed-sgpio.c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-09-23 11:03:44 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-09-24 15:06:44 +0200
commite43c26e12dd49a41cf5a4cd5c5b59a1eb98ed11e (patch)
treeea23e554509b36130798a06bf05fdc161f75306e /drivers/gpio/gpio-aspeed-sgpio.c
parentgpiolib: Fix line event handling in syscall compatible mode (diff)
downloadlinux-e43c26e12dd49a41cf5a4cd5c5b59a1eb98ed11e.tar.xz
linux-e43c26e12dd49a41cf5a4cd5c5b59a1eb98ed11e.zip
gpio: pca953x: Fix uninitialized pending variable
When pca953x_irq_pending returns false, the pending parameter won't be set. But pca953x_irq_handler continues using this uninitialized variable as pending irqs and will cause problem. Fix the issue by initializing pending to 0. Fixes: 064c73afe738 ("gpio: pca953x: Synchronize interrupt handler properly") Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-aspeed-sgpio.c')
0 files changed, 0 insertions, 0 deletions