aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-09-30 11:19:41 +0100
committerGerd Hoffmann <kraxel@redhat.com>2021-10-29 08:26:23 +0200
commit8f4502fa284478a5264afa8a5a95511276fa9b80 (patch)
treedafb4a4369893aa19bcfe927529111cc8736fb57 /tools/perf/scripts/python
parentMAINTAINERS: add reviewers for virtio-gpu (diff)
downloadlinux-8f4502fa284478a5264afa8a5a95511276fa9b80.tar.gz
linux-8f4502fa284478a5264afa8a5a95511276fa9b80.zip
drm/virtio: fix potential integer overflow on shift of a int
The left shift of unsigned int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then assigned to a signed 64 bit integer. In the case where i is 32 or more this can lead to an overflow. Fix this by shifting the value 1ULL instead. Addresses-Coverity: ("Uninitentional integer overflow") Fixes: 8d6b006e1f51 ("drm/virtio: implement context init: handle VIRTGPU_CONTEXT_PARAM_POLL_RINGS_MASK") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: http://patchwork.freedesktop.org/patch/msgid/20210930101941.16546-1-colin.king@canonical.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions