]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf5eb2d6d7523f05e5d9d8304e11df043da7257be
treef09409b82fc7fbc0c0ca9a61a7db7b63a16089ba
parent8d9a58d47065428f7e3b849e140b845ab57f72d8
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