On Thu, Nov 18, 2021 at 3:16 AM Dan Carpenter dan.carpenter@oracle.com wrote:
The drm_gem_shmem_get_sg_table() function never returns NULL. It returns error pointers on error.
Fixes: c66df701e783 ("drm/virtio: switch from ttm to gem shmem helpers") Signed-off-by: Dan Carpenter dan.carpenter@oracle.com
v2: I originally sent this patch on 19 Jun 2020 but it was somehow not applied. As I review it now, I see that the bug is actually older than I originally thought and so I have updated the Fixes tag.
Reviewed-by: Chia-I Wu olvaffe@gmail.com