Patch "windfarm: decrement client count when unregistering" has been added to the 3.10-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
windfarm: decrement client count when unregistering
to the 3.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
windfarm-decrement-client-count-when-unregistering.patch
and it can be found in the queue-3.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
fe2b592173ff0274e70dc44d1d28c19bb995aa7cMon Sep 17 00:00:00 2001
From: Paul Bolle <[email protected]>
Date: Fri, 31 Jul 2015 14:08:58 +0200
Subject: windfarm: decrement client count when unregistering
From: Paul Bolle <[email protected]>
commit fe2b592173ff0274e70dc44d1d28c19bb995aa7c upstream.
wf_unregister_client() increments the client count when a client unregisters. That is obviously incorrect. Decrement that client count instead.
--- drivers/macintosh/windfarm_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/macintosh/windfarm_core.c +1 -1
@@ -435,7 +435,7 @@ int wf_unregister_client(struct notifier {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);
Patches currently in stable-queue which might be from [email protected] are
queue-3.10/windfarm-decrement-client-count-when-unregistering.patch