Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e22469ca authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie
Browse files

ttm: Fix error-path using an uninitialized value



Pointed out by Michel Daenzer.

Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 899e3ee4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -321,7 +321,7 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
	struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type];
	struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type];
	struct ttm_tt *ttm = bo->ttm;
	struct ttm_tt *ttm = bo->ttm;
	struct ttm_mem_reg *old_mem = &bo->mem;
	struct ttm_mem_reg *old_mem = &bo->mem;
	struct ttm_mem_reg old_copy;
	struct ttm_mem_reg old_copy = *old_mem;
	void *old_iomap;
	void *old_iomap;
	void *new_iomap;
	void *new_iomap;
	int ret;
	int ret;