aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2018-01-10 09:39:03 +0000
committerJiri Kosina <[email protected]>2018-01-23 14:46:58 +0000
commit7ad81482cad67cbe1ec808490d1ddfc420c42008 (patch)
tree0224b26501aa50635630d3300382025ae63e1e97 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentHID: core: lower log level for unknown main item tags to warnings (diff)
downloadkernel-7ad81482cad67cbe1ec808490d1ddfc420c42008.tar.gz
kernel-7ad81482cad67cbe1ec808490d1ddfc420c42008.zip
HID: roccat: prevent an out of bounds read in kovaplus_profile_activated()
We get the "new_profile_index" value from the mouse device when we're handling raw events. Smatch taints it as untrusted data and complains that we need a bounds check. This seems like a reasonable warning otherwise there is a small read beyond the end of the array. Fixes: 0e70f97f257e ("HID: roccat: Add support for Kova[+] mouse") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Silvan Jegen <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions