diff options
| author | 2026-02-04 22:13:43 +0900 | |
|---|---|---|
| committer | 2026-02-07 14:35:26 +0100 | |
| commit | 5ed9ef2703adafbbc02258de76c07fa604a354de (patch) | |
| tree | 069c6d63db7b2459a0ed3cb9eafdf538bc0f9bae /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | staging: sm750fb: Clean up variable names (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 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
