summaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger
diff options
context:
space:
mode:
authorColin Ian King2017-09-20 23:19:57 +0200
committerGreg Kroah-Hartman2017-09-22 11:00:58 +0200
commitc51b46dd5b9950436b6b1f8189e93e1ad380cee1 (patch)
tree1f24446f549071232c8151053f785e148fe8eee9 /drivers/iio/trigger
parentstaging: vchiq_2835_arm: Fix NULL ptr dereference in free_pagelist (diff)
downloadkernel-qcow2-linux-c51b46dd5b9950436b6b1f8189e93e1ad380cee1.tar.gz
kernel-qcow2-linux-c51b46dd5b9950436b6b1f8189e93e1ad380cee1.tar.xz
kernel-qcow2-linux-c51b46dd5b9950436b6b1f8189e93e1ad380cee1.zip
staging: rtl8723bs: add missing range check on id
The value of the u8 id needs to be upper bounds checked to ensure the cam_cache array on the adapter dvobj is not indexed outside of the allowed range of 0..TOTAL_CAM_ENTRY-1. This can currently occur if id is >= TOTAL_CAM_ENTRY when calling write_cam_from_cache. Fix this by adding an upper range check. Detected by CoverityScan, CID#1428464 ("Use of untrusted scalar value") Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/trigger')
0 files changed, 0 insertions, 0 deletions