summaryrefslogtreecommitdiff
path: root/tools/power
diff options
context:
space:
mode:
authorAnton Vasilyev <vasilyev@ispras.ru>2018-07-27 16:39:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-02 11:11:32 +0300
commit0419056ec8fd01ddf5460d2dba0491aad22657dd (patch)
treee97023b2397f8d7f3d7ed55a40fd0d8ec5c3039e /tools/power
parent784c29eda5b4e28c3a56aa90b3815f9a1b0cfdc1 (diff)
downloadlinux-0419056ec8fd01ddf5460d2dba0491aad22657dd.tar.xz
tty: rocket: Fix possible buffer overwrite on register_PCI
If number of isa and pci boards exceed NUM_BOARDS on the path rp_init()->init_PCI()->register_PCI() then buffer overwrite occurs in register_PCI() on assign rcktpt_io_addr[i]. The patch adds check on upper bound for index of registered board in register_PCI. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions