diff options
author | 2021-11-04 14:42:49 -0700 | |
---|---|---|
committer | 2021-11-08 13:54:41 +0100 | |
commit | d89c0c8322ecdc9a2ec84b959b6f766be082da76 (patch) | |
tree | 4da172380ebb993989de676f8f80dc7ab0feeac7 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | Revert "drm/imx: Annotate dma-fence critical section in commit path" (diff) | |
download | linux-dev-d89c0c8322ecdc9a2ec84b959b6f766be082da76.tar.xz linux-dev-d89c0c8322ecdc9a2ec84b959b6f766be082da76.zip |
drm/virtio: Fix NULL dereference error in virtio_gpu_poll
When virgl is not enabled, vfpriv pointer would not be allocated.
Therefore, check for a valid value before dereferencing.
Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20211104214249.1802789-1-vivek.kasireddy@intel.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions