aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorXiaomeng Tong <xiam0nd.tong@gmail.com>2022-03-27 13:09:45 +0800
committerGerd Hoffmann <kraxel@redhat.com>2022-06-09 07:30:12 +0200
commitbd63f11f4c3c46afec07d821f74736161ff6e526 (patch)
tree64b77fe2043994618dd2366a2eb7fef0a0eac253 /scripts/patch-kernel
parentdrm/nouveau/bios: Rename prom_init() and friends functions (diff)
downloadlinux-bd63f11f4c3c46afec07d821f74736161ff6e526.tar.gz
linux-bd63f11f4c3c46afec07d821f74736161ff6e526.zip
virtio-gpu: fix a missing check to avoid NULL dereference
'cache_ent' could be set NULL inside virtio_gpu_cmd_get_capset() and it will lead to a NULL dereference by a lately use of it (i.e., ptr = cache_ent->caps_cache). Fix it with a NULL check. Fixes: 62fb7a5e10962 ("virtio-gpu: add 3d/virgl support") Signed-off-by: Xiaomeng Tong <xiam0nd.tong@gmail.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Link: http://patchwork.freedesktop.org/patch/msgid/20220327050945.1614-1-xiam0nd.tong@gmail.com [ kraxel: minor codestyle fixup ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions