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

Commit dde1f3fe authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa: Fix to resource manager restarting issue



Resource manager restarting because failed to parse
the resource name as it contains the new line character.
Added code changes to remove new line character in
resource name to fix this issue.

Change-Id: Id7d3a796c803daf8464b068b95fa01d06a77cad3
Acked-by: default avatarAshok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 71721a67
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2013-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-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
@@ -140,7 +140,7 @@ int ipa_rm_inactivity_timer_init(enum ipa_rm_resource_name resource_name,
	ipa_rm_it_handles[resource_name].work_in_progress = false;
	pwlock = &(ipa_rm_it_handles[resource_name].w_lock);
	name = ipa_rm_it_handles[resource_name].w_lock_name;
	snprintf(name, MAX_WS_NAME, "IPA_RM%d\n", resource_name);
	snprintf(name, MAX_WS_NAME, "IPA_RM%d", resource_name);
	wakeup_source_init(pwlock, name);
	INIT_DELAYED_WORK(&ipa_rm_it_handles[resource_name].work,
			  ipa_rm_inactivity_timer_func);