diff options
author | Philipp Stanner <pstanner@redhat.com> | 2023-11-02 20:26:13 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-11-08 10:26:27 +0100 |
commit | cc9c54232f04aef3a5d7f64a0ece7df00f1aaa3d (patch) | |
tree | ed5160827e15e024e4eaa8c527c325992f56cbc9 /sound/sh | |
parent | e8183fa10c25c7b3c20670bf2b430ddcc1ee03c0 (diff) |
i2c: dev: copy userspace array safely
i2c-dev.c utilizes memdup_user() to copy a userspace array. This is done
without an overflow check.
Use the new wrapper memdup_array_user() to copy the array more safely.
Suggested-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'sound/sh')
0 files changed, 0 insertions, 0 deletions