diff options
author | Philipp Stanner <pstanner@redhat.com> | 2023-11-02 20:26:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-11-28 17:19:47 +0000 |
commit | bef76b8544939518dafa3325bcd438b111136437 (patch) | |
tree | 4ed8c79001a234552bb5b2f02a4e4cea47d3d2ac /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | eff53aea3855f71992c043cebb1c00988c17ee20 (diff) |
i2c: dev: copy userspace array safely
[ Upstream commit cc9c54232f04aef3a5d7f64a0ece7df00f1aaa3d ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions