]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: add NULL check for bo->resource
authorChristian König <christian.koenig@amd.com>
Tue, 6 Jul 2021 06:51:25 +0000 (08:51 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 9 Jul 2021 10:43:13 +0000 (12:43 +0200)
commit3efe180d5105d367ae1dfadb97892ab93a89a783
tree7def59b752035e81f75560b136fbabf4426e7b66
parentf18f58012ee894039cd59ee8c889bf499d7a3943
drm/qxl: add NULL check for bo->resource

When allocations fails that can be NULL now.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Tested-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Tested-by: Roberto Sassu <roberto.sassu@huawei.com>
Fixes: bfa3357ef9ab ("drm/ttm: allocate resource object instead of embedding it v2")
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210708114710.8186-1-christian.koenig@amd.com
drivers/gpu/drm/qxl/qxl_ttm.c