Commit 7cd3e6dd authored by Vivek Kasireddy's avatar Vivek Kasireddy Committed by Chromeos LUCI
Browse files

UPSTREAM: 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: default avatarChristian Zigotzky <chzigotzky@xenosoft.de>
Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarVivek Kasireddy <vivek.kasireddy@intel.com>
Tested-by: default avatarChristian Zigotzky <chzigotzky@xenosoft.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20211104214249.1802789-1-vivek.kasireddy@intel.com


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit d89c0c83)

BUG=b:176158390, b:203009046, b:230100768
TEST=gfxbench and deqp-cts in arcvm

Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Change-Id: Ia3f0fa03cb2a32d20cc19c7875b7c18be2b49758
Disallow-Recycled-Builds: test-failures
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3602853


Reviewed-by: default avatarSean Paul <seanpaul@chromium.org>
Reviewed-by: default avatarChia-I Wu <olv@google.com>
Reviewed-by: default avatarRyan Neph <ryanneph@google.com>
parent 5161ee3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment