Skip to content
Snippets Groups Projects
Commit cc9c5423 authored by Philipp Stanner's avatar Philipp Stanner Committed by Wolfram Sang
Browse files

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: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarPhilipp Stanner <pstanner@redhat.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent e8183fa1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment