diff options
| author | 2020-03-12 15:50:21 +0100 | |
|---|---|---|
| committer | 2020-03-25 09:50:45 +0100 | |
| commit | d1ee7e1f5c9191afb69ce46cc7752e4257340a31 (patch) | |
| tree | 3e2b25ad26ca3a3c3a708a108c74e98c6d624518 /include/linux/gpio | |
| parent | gpio: mvebu: avoid error message for optional IRQ (diff) | |
| download | linux-dev-d1ee7e1f5c9191afb69ce46cc7752e4257340a31.tar.xz linux-dev-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 <gabravier@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'include/linux/gpio')
0 files changed, 0 insertions, 0 deletions
