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

Commit 229f63e2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Check the snapshot structure before dereferencing"

parents f9bcedf3 8fad0a3b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
/* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2010-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2732,8 +2732,10 @@ _aware(struct kgsl_device *device)
				 * GPU will not be powered on
				 */
				WARN_ONCE(1, "Failed to recover GMU\n");
				if (device->snapshot)
					device->snapshot->recovered = false;
			} else {
				if (device->snapshot)
					device->snapshot->recovered = true;
			}