summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-08-01 20:03:35 +0300
committerBjorn Helgaas <bhelgaas@google.com>2025-08-13 16:25:04 -0500
commit1ad82f9db13d85667366044acdfb02009d576c5a (patch)
tree5495a97f33b4ec706c29b1516b69c48600d39646 /scripts/generate_rust_analyzer.py
parent57a75fa9d56e310e883e4377205690e88c05781b (diff)
misc: pci_endpoint_test: Fix array underflow in pci_endpoint_test_ioctl()
Commit eefb83790a0d ("misc: pci_endpoint_test: Add doorbell test case") added NO_BAR (-1) to the pci_barno enum which, in practical terms, changes the enum from an unsigned int to a signed int. If the user passes a negative number in pci_endpoint_test_ioctl() then it results in an array underflow in pci_endpoint_test_bar(). Fixes: eefb83790a0d ("misc: pci_endpoint_test: Add doorbell test case") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/aIzzZ4vc6ZrmM9rI@suswa
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions