]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/ttm: fix missing NULL check in the new page pool
authorChristian König <christian.koenig@amd.com>
Fri, 6 Nov 2020 14:06:49 +0000 (15:06 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 13 Nov 2020 16:01:48 +0000 (17:01 +0100)
commite3e043992cb600506022761e9c5c90c85cda3386
treef07561dd63bc416b21b7d13bb423f2f34691a5c9
parenta7319c8f50c5e93a12997e2d0821a2f7946fb734
drm/ttm: fix missing NULL check in the new page pool

The pool parameter can be NULL if we free through the shrinker.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Martin Peres <martin.peres@mupuf.org>
Acked-by: Martin Peres <martin.peres@mupuf.org>
Reported-by: Andy Lavr <andy.lavr@gmail.com>
Tested-by: Andy Lavr <andy.lavr@gmail.com>
Link: https://patchwork.freedesktop.org/patch/399365/
drivers/gpu/drm/ttm/ttm_pool.c