diff options
author | Arnd Bergmann <[email protected]> | 2016-06-16 11:02:41 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2016-06-16 12:00:25 +0200 |
commit | bc0207a5461169eba13e9421bd7632399b72e3ab (patch) | |
tree | 53681e9334bb0a60fae868cef60b2be714d01336 /scripts/gdb/linux/proc.py | |
parent | 97f69747d8b11c76df321894344beeae6bafc301 (diff) |
gpiolib: avoid uninitialized data in gpio kfifo
gcc reports a theoretical case for returning uninitialized data in
the kfifo when a GPIO interrupt happens and neither
GPIOEVENT_REQUEST_RISING_EDGE nor GPIOEVENT_REQUEST_FALLING_EDGE
are set:
drivers/gpio/gpiolib.c: In function 'lineevent_irq_thread':
drivers/gpio/gpiolib.c:683:87: error: 'ge.id' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This case should not happen, but to be on the safe side, let's
return from the irq handler without adding data to the FIFO
to ensure we can never leak stack data to user space.
Signed-off-by: Arnd Bergmann <[email protected]>
Fixes: 61f922db7221 ("gpio: userspace ABI for reading GPIO line events")
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions