]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fix invalid NULL deref
authorChristian König <christian.koenig@amd.com>
Thu, 25 Mar 2021 15:06:57 +0000 (16:06 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 26 Mar 2021 16:57:34 +0000 (17:57 +0100)
commitfd36db4df6da2f652b5eebd8524f64363bfc2ec4
treefdd506fee078afbbb0364e3984ddc9d68e25bb70
parent6aada6cdbf7974fd97240ab3b38b9cf8c33bcdb7
drm/ttm: fix invalid NULL deref

The BO might be NULL in this function, use the bdev directly.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Colin Ian King <colin.king@canonical.com>
Fixes: d72a71683554 ("drm/ttm: switch to per device LRU lock")
Link: https://patchwork.freedesktop.org/patch/msgid/20210325152740.82633-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c