]> 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)
commit613b121d6cfe1a46fac8137835c6617939e2aa64
tree7def59b752035e81f75560b136fbabf4426e7b66
parentce49f37d79073f256d1a2f25e443d0a2e3ecc213
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: 0abecef40ccc ("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