linux-kernelorg-stable/drivers/staging
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
..
android
axis-fifo
board
clocking-wizard
comedi staging: comedi: Fix comedi_device refcnt leak in comedi_open 2020-04-23 13:45:24 +02:00
emxx_udc
fbtft
fieldbus
fsl-dpaa2
fwserial
gasket staging: gasket: Check the return value of gasket_get_bar_index() 2020-05-05 12:36:05 +02:00
gdm724x
goldfish
greybus
gs_fpgaboot
iio
kpc2000
ks7010 staging: ks7010: remove me from CC list 2020-05-05 12:36:04 +02:00
media
most
mt7621-dma
mt7621-dts
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu
rtl8192e
rtl8192u
rtl8712
rtl8723bs
rts5208
sm750fb
speakup Char/Misc driver patches for 5.7-rc1 2020-04-03 13:22:40 -07:00
unisys
vc04_services
vme
vt6655
vt6656 staging: vt6656: Fix calling conditions of vnt_set_bss_mode 2020-04-23 13:47:34 +02:00
wfx
wilc1000
wlan-ng
Kconfig
Makefile