aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-uniphier.c
diff options
context:
space:
mode:
authorGabriel Ravier <[email protected]>2020-03-12 14:50:21 +0000
committerBartosz Golaszewski <[email protected]>2020-03-25 08:50:45 +0000
commitd1ee7e1f5c9191afb69ce46cc7752e4257340a31 (patch)
tree3e2b25ad26ca3a3c3a708a108c74e98c6d624518 /drivers/gpio/gpio-uniphier.c
parentgpio: mvebu: avoid error message for optional IRQ (diff)
downloadkernel-d1ee7e1f5c9191afb69ce46cc7752e4257340a31.tar.gz
kernel-d1ee7e1f5c9191afb69ce46cc7752e4257340a31.zip
tools: gpio-hammer: Avoid potential overflow in main
If '-o' was used more than 64 times in a single invocation of gpio-hammer, this could lead to an overflow of the 'lines' array. This commit fixes this by avoiding the overflow and giving a proper diagnostic back to the user Signed-off-by: Gabriel Ravier <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-uniphier.c')
0 files changed, 0 insertions, 0 deletions