summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorGabriel Ravier <gabravier@gmail.com>2020-03-12 17:50:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-01 14:14:39 +0300
commit1d0e482939c49c6fc4979e964c1cd6a7c255edd0 (patch)
tree35ff32e854fb32e054494360be31c0d9c12c4331 /drivers/nvme
parent68aaf03936dcbfdf023ac2f7182c03f83c0c6e05 (diff)
downloadlinux-1d0e482939c49c6fc4979e964c1cd6a7c255edd0.tar.xz
tools: gpio-hammer: Avoid potential overflow in main
[ Upstream commit d1ee7e1f5c9191afb69ce46cc7752e4257340a31 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions