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

Commit fe6f9689 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Set snapshot_atomic only after passing all checks"

parents a88b862c df6dfd9a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -678,8 +678,6 @@ static void kgsl_device_snapshot_atomic(struct kgsl_device *device)
	struct kgsl_snapshot *snapshot;
	phys_addr_t pa;

	device->snapshot_atomic = true;

	if (device->snapshot && device->force_panic)
		return;

@@ -703,6 +701,7 @@ static void kgsl_device_snapshot_atomic(struct kgsl_device *device)
	if (snapshot == NULL)
		return;

	device->snapshot_atomic = true;
	INIT_LIST_HEAD(&snapshot->obj_list);
	INIT_LIST_HEAD(&snapshot->cp_list);