diff options
author | 2017-09-30 11:16:51 +0300 | |
---|---|---|
committer | 2017-10-31 15:33:39 -0500 | |
commit | a2db2663bd72053ca1e4b4f36dfd31ba233c3a65 (patch) | |
tree | 369999c8503fa875edfb12db66f23a9a42147944 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | misc: pci_endpoint_test: Prevent some integer overflows (diff) | |
download | wireguard-linux-a2db2663bd72053ca1e4b4f36dfd31ba233c3a65.tar.xz wireguard-linux-a2db2663bd72053ca1e4b4f36dfd31ba233c3a65.zip |
misc: pci_endpoint_test: Avoid triggering a BUG()
If you call ida_simple_remove(&pci_endpoint_test_ida, id) with a negative
"id" then it triggers an immediate BUG_ON(). Let's not allow that.
Fixes: 2c156ac71c6b ("misc: Add host side PCI driver for PCI test function device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions