Commit 7092e9b3 authored by Kartik's avatar Kartik Committed by Thierry Reding
Browse files

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: default avatarKartik <kkartik@nvidia.com>
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 9863084d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment