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:43 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-07 14:35:26 +0100
commit5ed9ef2703adafbbc02258de76c07fa604a354de (patch)
tree069c6d63db7b2459a0ed3cb9eafdf538bc0f9bae /rust/alloc/collections/git@git.tavy.me:linux.git
parentab67d4c6d5d33f408df9a43d0fa94f54a32995a8 (diff)
staging: rtl8723bs: introduce kmemdup() where applicable
Replace memory allocation followed by memcpy() with kmemdup() to simplify the code and improve readability. 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. Specifically, in OnAssocReq(), GFP_ATOMIC is used because the allocation is performed while holding a spin lock. Signed-off-by: Minu Jin <s9430939@naver.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Link: https://patch.msgid.link/20260204131347.3515949-2-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