summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_displayid.c
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-06-02 14:42:22 +0400
committerGerd Hoffmann <kraxel@redhat.com>2022-06-09 07:30:13 +0200
commitc24968734abfed81c8f93dc5f44a7b7a9aecadfa (patch)
tree06ba6a8559e0a0f51c3ea60da4bdc30ff1ee3ec0 /drivers/gpu/drm/drm_displayid.c
parent9e9fa6a9198b767b00f48160800128e83a038f9f (diff)
downloadlinux-c24968734abfed81c8f93dc5f44a7b7a9aecadfa.tar.bz2
drm/virtio: Fix NULL vs IS_ERR checking in virtio_gpu_object_shmem_init
Since drm_prime_pages_to_sg() function return error pointers. The drm_gem_shmem_get_sg_table() function returns error pointers too. Using IS_ERR() to check the return value to fix this. Fixes: 2f2aa13724d5 ("drm/virtio: move virtio_gpu_mem_entry initialization to new function") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Link: http://patchwork.freedesktop.org/patch/msgid/20220602104223.54527-1-linmq006@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_displayid.c')
0 files changed, 0 insertions, 0 deletions