diff options
author | Kartik <kkartik@nvidia.com> | 2023-10-17 10:53:15 +0530 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2024-02-01 15:58:05 +0100 |
commit | 7092e9b3bed1252c7d3f5812b9fb9d82375b73a6 (patch) | |
tree | f394199a150ef9400a8967586a481d87e4e14768 /mm/oom_kill.c | |
parent | 9863084dd9939e53eb67a689f13503e8025434ac (diff) |
mm/util: Introduce kmemdup_array()
Introduce kmemdup_array() API to duplicate `n` number of elements
from a given array. This internally uses kmemdup to allocate and duplicate
the `src` array.
Signed-off-by: Kartik <kkartik@nvidia.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions