summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMinu Jin <s9430939@naver.com>2026-02-04 22:13:44 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-07 14:35:28 +0100
commit9577f3b3332b499202ce533cb0e25e2ea58abc9e (patch)
tree66d8882b0b1b7be7294cfe5c5af62b1514e67d21 /rust/alloc/collections/git@git.tavy.me:linux.git
parent5ed9ef2703adafbbc02258de76c07fa604a354de (diff)
staging: rtl8723bs: replace rtw_malloc() with kmalloc()
Replace the wrapper function rtw_malloc() with standard kmalloc(). Call sites were reviewed to use appropriate GFP flags (GFP_KERNEL or GFP_ATOMIC) based on the execution context. About GFP Flags: - GFP_ATOMIC is used for allocations in atomic contexts such as spinlock-protected sections, tasklets, and timer handlers. - GFP_KERNEL is used for process contexts where sleeping is allowed. Also, convert error return codes from -1 to -ENOMEM where appropriate. Signed-off-by: Minu Jin <s9430939@naver.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Link: https://patch.msgid.link/20260204131347.3515949-3-s9430939@naver.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions