milos-linux/drivers/staging
Shyam Sunder Reddy Padira bc851db060 staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc
The return value of kzalloc_flex() is used without
ensuring that the allocation succeeded, and the
pointer is dereferenced unconditionally.

Guard the access to the allocated structure to
avoid a potential NULL pointer dereference if the
allocation fails.

Fixes: 980cd426a2 ("staging: rtl8723bs: replace rtw_zmalloc() with kzalloc()")
Cc: stable <stable@kernel.org>
Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/20260414071308.4781-2-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-05-04 11:36:47 +02:00
..
axis-fifo
fbtft
greybus staging: greybus: audio: fix error message for BTN_3 button 2026-03-31 10:34:30 +02:00
iio staging: iio: ad9834: use sysfs_emit() and simplify show functions 2026-03-21 13:16:07 +00:00
media staging: media: ipu7: Update TODO 2026-03-26 14:33:07 +01:00
most staging: most: dim2: replace BUG_ON() in poison_channel() 2026-03-31 10:46:39 +02:00
nvec
octeon
rtl8723bs staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc 2026-05-04 11:36:47 +02:00
sm750fb staging: sm750fb: fix division by zero in ps_to_hz() 2026-03-31 10:33:21 +02:00
vc04_services
vme_user staging: vme_user: fix root device leak on init failure 2026-05-04 11:29:53 +02:00
Kconfig
Makefile