powerpc/pseries: Correct memory hotplug locking
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 7 Apr 2015 14:53:46 +0000 (09:53 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Apr 2015 23:26:08 +0000 (09:26 +1000)
commitb0a478ede669949682b9c698f6146c0065543b91
tree4f783ca1b540269e83f2ebab8a846dc7c472b9e4
parent3a29dd6d6f445212ddbcf43a2ba6352127ce9ee8
powerpc/pseries: Correct memory hotplug locking

Memory dlpar handling can return from dlpar_memory() without releasing the
device_hotplug lock. Correct this routine to ensure the lock is released.

Fixes: 5f97b2a0d176 ("powerpc/pseries: Implement memory hotplug add in the kernel")
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-memory.c