[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1460976397-5688-11-git-send-email-lizf@kernel.org>
Date: Mon, 18 Apr 2016 18:45:16 +0800
From: lizf@...nel.org
To: stable@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Paul Bolle <pebolle@...cali.nl>,
Michael Ellerman <mpe@...erman.id.au>,
Zefan Li <lizefan@...wei.com>
Subject: [PATCH 3.4 11/92] windfarm: decrement client count when unregistering
From: Paul Bolle <pebolle@...cali.nl>
3.4.112-rc1 review patch. If anyone has any objections, please let me know.
------------------
commit fe2b592173ff0274e70dc44d1d28c19bb995aa7c upstream.
wf_unregister_client() increments the client count when a client
unregisters. That is obviously incorrect. Decrement that client count
instead.
Fixes: 75722d3992f5 ("[PATCH] ppc64: Thermal control for SMU based machines")
Signed-off-by: Paul Bolle <pebolle@...cali.nl>
Signed-off-by: Michael Ellerman <mpe@...erman.id.au>
Signed-off-by: Zefan Li <lizefan@...wei.com>
---
drivers/macintosh/windfarm_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/macintosh/windfarm_core.c b/drivers/macintosh/windfarm_core.c
index ce88979..004fa10 100644
--- a/drivers/macintosh/windfarm_core.c
+++ b/drivers/macintosh/windfarm_core.c
@@ -421,7 +421,7 @@ int wf_unregister_client(struct notifier_block *nb)
{
mutex_lock(&wf_lock);
blocking_notifier_chain_unregister(&wf_client_list, nb);
- wf_client_count++;
+ wf_client_count--;
if (wf_client_count == 0)
wf_stop_thread();
mutex_unlock(&wf_lock);
--
1.9.1
Powered by blists - more mailing lists