commit | a2db2663bd72053ca1e4b4f36dfd31ba233c3a65 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Sep 30 11:16:51 2017 +0300 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Tue Oct 31 15:33:39 2017 -0500 |
tree | 369999c8503fa875edfb12db66f23a9a42147944 | |
parent | 343dc693f7b79885197f9d37dd8b711b0e3ffc8f [diff] |
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>