PCI: ibmphp_hpc: don't release hw sem twice if kthread stops
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Dec 2009 23:18:01 +0000 (15:18 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 4 Dec 2009 23:18:01 +0000 (15:18 -0800)
commit5c788a695ab5740413d9f9c0035d0d7aeef1c708
tree8cfa260d86f7c122a501e20723394eeef1b8e3f5
parentf6e1d8cc38b3776038fb15d3acc82ed8bb552f82
PCI: ibmphp_hpc: don't release hw sem twice if kthread stops

If we stop the kthread, we may end up up'ing the sem twice, which seems
unintended.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/ibmphp_hpc.c