radeon: initialize hole variable before calling container_of

Like in a few other places in that radeon_drm_bo.c file.

CID 715739.

Signed-off-by: Julien Isorce <jisorce@oblong.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Julien Isorce 2017-02-27 13:42:17 +00:00
parent 7c50f9903f
commit ce27b27c38

View file

@ -258,7 +258,7 @@ static uint64_t radeon_bomgr_find_va(struct radeon_drm_winsys *rws,
static void radeon_bomgr_free_va(struct radeon_drm_winsys *rws,
uint64_t va, uint64_t size)
{
struct radeon_bo_va_hole *hole;
struct radeon_bo_va_hole *hole = NULL;
size = align(size, rws->info.gart_page_size);