Skip to content
Snippets Groups Projects
Commit 37a78445 authored by Dan Carpenter's avatar Dan Carpenter Committed by Gerd Hoffmann
Browse files

virtio-gpu: fix shift wrapping bug in virtio_gpu_fence_event_create()


The ->ring_idx_mask variable is a u64 so static checkers, Smatch in
this case, complain if the BIT() is not also a u64.

drivers/gpu/drm/virtio/virtgpu_ioctl.c:50 virtio_gpu_fence_event_create()
warn: should '(1 << ring_idx)' be a 64 bit type?

Fixes: cd7f5ca3 ("drm/virtio: implement context init: add virtio_gpu_fence_event")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/YygN7jY0GdUSQSy0@kili


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 461a4df2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment