1
0
Fork 0
alistair23-linux/drivers/staging
Oscar Carter b8fe132bae staging: gasket: Check the return value of gasket_get_bar_index()
commit 769acc3656 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-14 07:58:27 +02:00
..
android staging: android: ashmem: Disallow ashmem memory from being remapped 2020-02-28 17:22:15 +01:00
axis-fifo
board
clocking-wizard
comedi staging: comedi: Fix comedi_device refcnt leak in comedi_open 2020-04-29 16:33:20 +02:00
emxx_udc
exfat
fbtft
fieldbus
fsl-dpaa2
fwserial
gasket staging: gasket: Check the return value of gasket_get_bar_index() 2020-05-14 07:58:27 +02:00
gdm724x
goldfish
greybus staging: greybus: loopback_test: fix potential path truncations 2020-03-25 08:25:59 +01:00
gs_fpgaboot
iio
isdn
kpc2000 staging: kpc2000: prevent underflow in cpld_reconfigure() 2020-04-01 11:02:16 +02:00
ks7010
media media: hantro: Read be32 words starting at every fourth byte 2020-04-17 10:50:08 +02:00
most
mt7621-dma
mt7621-dts
mt7621-pci staging: mt7621-pci: add quirks for 'E2' revision using 'soc_device_attribute' 2020-02-01 09:34:47 +00:00
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu staging: rtl8188eu: Add ASUS USB-N10 Nano B1 to device table 2020-04-01 11:02:16 +02:00
rtl8192e
rtl8192u
rtl8712
rtl8723bs staging: rtl8723bs: fix copy of overlapping memory 2020-02-28 17:22:26 +01:00
rts5208
sm750fb
speakup staging/speakup: fix get_word non-space look-ahead 2020-03-25 08:25:55 +01:00
unisys
uwb
vc04_services
vme
vt6655
vt6656 staging: vt6656: Power save stop wake_up_count wrap around. 2020-04-29 16:33:22 +02:00
wilc1000 staging: wilc1000: avoid double unlocking of 'wilc->hif_cs' mutex 2020-04-17 10:50:00 +02:00
wlan-ng staging: wlan-ng: fix use-after-free Read in hfa384x_usbin_callback 2020-04-01 11:02:17 +02:00
wusbcore
Kconfig
Makefile