aboutsummaryrefslogtreecommitdiff
path: root/drivers/pcmcia/cistpl.c
diff options
context:
space:
mode:
authorGravatar Dan Carpenter <dan.carpenter@oracle.com> 2017-09-30 11:16:51 +0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2017-10-04 10:39:28 +0200
commit846df244ebefbc9f7b91e9ae7a5e5a2e69fb4772 (patch)
treedcefb9b691d5989dfea4c53cc310e0a9872c0815 /drivers/pcmcia/cistpl.c
parentmisc: pci_endpoint_test: Prevent some integer overflows (diff)
downloadlinux-846df244ebefbc9f7b91e9ae7a5e5a2e69fb4772.tar.gz
linux-846df244ebefbc9f7b91e9ae7a5e5a2e69fb4772.tar.bz2
linux-846df244ebefbc9f7b91e9ae7a5e5a2e69fb4772.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/cistpl.c')
0 files changed, 0 insertions, 0 deletions