Skip to content
Commit e43c26e1 authored by Ye Li's avatar Ye Li Committed by Bartosz Golaszewski
Browse files

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: 064c73af ("gpio: pca953x: Synchronize interrupt handler properly")
Signed-off-by: default avatarYe Li <ye.li@nxp.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 5ad284ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment