aboutsummaryrefslogtreecommitdiff
path: root/drivers/bcma/host_pci.c
diff options
context:
space:
mode:
authorPhilipp Stanner2023-11-02 20:26:13 +0100
committerGreg Kroah-Hartman2023-11-28 17:07:02 +0000
commitaff8be2cad74a22525cd89cdff0b72a5c9a4c0c6 (patch)
treeed85c3ee97b14244faa49962afda4534086ddb42 /drivers/bcma/host_pci.c
parent72d02adae32039da7eb8c63f062964b39b5b3147 (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/bcma/host_pci.c')
0 files changed, 0 insertions, 0 deletions