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

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

Merge "soc: qcom: pil: Fix kernel pointer leak"

parents 7a79269b 1a73a21d
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2017, 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
@@ -1042,8 +1042,9 @@ int subsystem_restart_dev(struct subsys_device *dev)
	pr_info("Restart sequence requested for %s, restart_level = %s.\n",
		name, restart_levels[dev->restart_level]);

	if (WARN(disable_restart_work == DISABLE_SSR,
		"subsys-restart: Ignoring restart request for %s.\n", name)) {
	if (disable_restart_work == DISABLE_SSR) {
		pr_warn("subsys-restart: Ignoring restart request for %s.\n",
									name);
		return 0;
	}