drm/ttm: fix access to uninitialized variable.
authorChristian König <christian.koenig@amd.com>
Mon, 7 Jun 2021 17:10:45 +0000 (19:10 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 7 Jun 2021 17:54:46 +0000 (19:54 +0200)
commitb8be9e19f4658c28f3e4971adbe233f17f8714aa
treef09409b82fc7fbc0c0ca9a61a7db7b63a16089ba
parent24994b91ecc57602d1084d243cd89752dda7865c
drm/ttm: fix access to uninitialized variable.

The resource is not allocated yet, so no chance that this will work.

Use the placement instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210607171152.15914-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_bo.c