Re: [PATCH] drm/ttm: fix invalid NULL deref

2021-03-25 Thread Colin Ian King
On 25/03/2021 15:27, Christian König wrote: > The BO might be NULL in this function, use the bdev directly. > > Signed-off-by: Christian König > Reported-by: Colin Ian King > Fixes: a1f091f8ef2b ("drm/ttm: switch to per device LRU lock") > --- > drivers/gpu/drm/ttm/ttm_bo.c | 6 +++--- > 1 file

[PATCH] drm/ttm: fix invalid NULL deref

2021-03-25 Thread Christian König
The BO might be NULL in this function, use the bdev directly. Signed-off-by: Christian König Reported-by: Colin Ian King Fixes: a1f091f8ef2b ("drm/ttm: switch to per device LRU lock") --- drivers/gpu/drm/ttm/ttm_bo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driv