linux/drivers/staging/gasket
Oscar Carter 769acc3656 staging: gasket: Check the return value of gasket_get_bar_index()
Check the return value of gasket_get_bar_index function as it can return
a negative one (-EINVAL). If this happens, a negative index is used in
the "gasket_dev->bar_data" array.

Addresses-Coverity-ID: 1438542 ("Negative array index read")
Fixes: 9a69f5087c ("drivers/staging: Gasket driver framework + Apex driver")
Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Richard Yeh <rcy@google.com>
Link: https://lore.kernel.org/r/20200501155118.13380-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-05 12:36:05 +02:00
..
apex_driver.c PCI: Move Apex Edge TPU class quirk to fix BAR assignment 2020-04-14 19:16:51 -05:00
apex.h
gasket_constants.h PCI: Add PCI_STD_NUM_BARS for the number of standard BARs 2019-10-14 10:22:26 -05:00
gasket_core.c staging: gasket: Check the return value of gasket_get_bar_index() 2020-05-05 12:36:05 +02:00
gasket_core.h PCI: Add PCI_STD_NUM_BARS for the number of standard BARs 2019-10-14 10:22:26 -05:00
gasket_interrupt.c
gasket_interrupt.h
gasket_ioctl.c staging: gasket: Fix lines ending with a '(' 2019-10-27 08:15:42 +01:00
gasket_ioctl.h
gasket_page_table.c staging/gasket: Fix string split 2019-05-30 14:09:47 -07:00
gasket_page_table.h
gasket_sysfs.c staging: gasket: Fix incongruency in handling of sysfs entries creation 2020-04-13 16:32:11 +02:00
gasket_sysfs.h staging: gasket: Fix incongruency in handling of sysfs entries creation 2020-04-13 16:32:11 +02:00
gasket.h
Kconfig
Makefile
TODO