linux/drivers/staging
Dan Carpenter 37f12202c5 staging: r8188eu: prevent array underflow in rtw_hal_update_ra_mask()
The problem is that "mac_id" is a u32 so this check for underflow does
not work when "mac_id" is zero.  In that situation, "mac_id - 1" is
UINT_MAX instead of -1 so the condition is true.  It leads to an
array underflow on the next line.

Fixes: 8cd574e6af ("staging: r8188eu: introduce new hal dir for RTL8188eu driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210930122604.GB10068@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-05 12:35:30 +02:00
..
android staging: android: ashmem: add size field in procfs fdinfo 2021-06-18 13:02:40 +02:00
axis-fifo
board staging: board: Fix uninitialized spinlock when attaching genpd 2021-07-21 11:22:15 +02:00
clocking-wizard clk: staging: correct reference to config IOMEM to config HAS_IOMEM 2021-08-17 20:03:00 +02:00
emxx_udc
fbtft staging/fbtft: Fix braces coding style 2021-08-05 13:05:57 +02:00
fieldbus bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
fwserial tty: drop put_tty_driver 2021-07-27 12:17:21 +02:00
gdm724x TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
greybus staging: greybus: uart: fix tty use after free 2021-09-14 09:18:18 +02:00
gs_fpgaboot
iio
ks7010 staging/ks7010: Remove all strcpy() uses in favor of strscpy() 2021-07-27 15:21:02 +02:00
media Kbuild updates for v5.15 2021-09-03 15:33:47 -07:00
most staging/most: Remove all strcpy() uses in favor of strscpy() 2021-07-27 15:10:41 +02:00
mt7621-dma
mt7621-dts Staging / IIO driver patches for 5.14-rc1 2021-07-05 14:01:53 -07:00
mt7621-pci staging: mt7621-pci: fix hang when nothing is connected to pcie ports 2021-08-26 12:06:37 +02:00
netlogic
nvec
octeon dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
octeon-usb
olpc_dcon kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
pi433
qlge IIO / Staging driver update for 5.15-rc1 2021-09-01 09:45:57 -07:00
r8188eu staging: r8188eu: prevent array underflow in rtw_hal_update_ra_mask() 2021-10-05 12:35:30 +02:00
ralink-gdma
rtl8192e staging: rtl8192e: rtl_core: Fix possible null-pointer dereference in _rtl92e_pci_disconnect() 2021-08-11 09:43:44 +02:00
rtl8192u staging/rtl8192u: Prefer kcalloc over open coded arithmetic 2021-08-26 12:14:27 +02:00
rtl8712 Merge 5.14-rc5 into staging-next 2021-08-09 08:59:23 +02:00
rtl8723bs staging: rtl8723bs: remove header file ethernet.h 2021-08-26 12:14:57 +02:00
rts5208 staging: rts5208: Fix get_ms_information() heap buffer size 2021-08-18 10:10:49 +02:00
sm750fb staging: sm750fb: Rename vScreen to v_screen in lynxfb_crtc 2021-07-28 20:17:26 +02:00
unisys staging: unisys: visorhba: Convert module from IDR to XArray 2021-06-15 13:55:11 +02:00
vc04_services staging: vc04_services: shut up out-of-range warning 2021-10-05 12:34:54 +02:00
vme
vt6655 staging: vt6655: Remove filenames in files 2021-08-28 09:45:10 +02:00
vt6656 staging: vt6656: Remove filenames in files 2021-08-28 08:33:33 +02:00
wfx
wlan-ng IIO / Staging driver update for 5.15-rc1 2021-09-01 09:45:57 -07:00
Kconfig staging: rtl8188eu: remove rtl8188eu driver from staging dir 2021-08-01 08:10:42 +02:00
Makefile staging: rtl8188eu: remove rtl8188eu driver from staging dir 2021-08-01 08:10:42 +02:00