Re: [PATCH] ehea: Fix memory hook reference counting crashes

2015-04-26 Thread Michael Ellerman
On Sat, 2015-04-25 at 14:43 -0400, David Miller wrote: > From: Michael Ellerman > Date: Fri, 24 Apr 2015 15:52:32 +1000 > > > The recent commit to only register the EHEA memory hotplug hooks on > > adapter probe has a few problems. > > > > Firstly the reference counting is wrong for multiple ada

Re: [PATCH] ehea: Fix memory hook reference counting crashes

2015-04-25 Thread David Miller
From: Michael Ellerman Date: Fri, 24 Apr 2015 15:52:32 +1000 > The recent commit to only register the EHEA memory hotplug hooks on > adapter probe has a few problems. > > Firstly the reference counting is wrong for multiple adapters, in that > the hooks are registered multiple times. Secondly th

[PATCH] ehea: Fix memory hook reference counting crashes

2015-04-23 Thread Michael Ellerman
The recent commit to only register the EHEA memory hotplug hooks on adapter probe has a few problems. Firstly the reference counting is wrong for multiple adapters, in that the hooks are registered multiple times. Secondly the check in the tear down path is backward. Finally the error path doesn't