summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorShyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com>2026-04-14 12:43:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-04 11:36:47 +0200
commitbc851db06045a40c18233dd76ef0562d7f8bb6db (patch)
tree61ad86d5c92befdcfa2db2908b1b668fe04a5134 /rust/kernel
parent32c91e8ee039777d0b95b914633fc6a42607959c (diff)
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: 980cd426a257 ("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>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions