]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
PCI hotplug: fix lock imbalance in pciehp
authorJiri Slaby <jirislaby@gmail.com>
Sat, 17 Jan 2009 15:23:55 +0000 (16:23 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 19 Jan 2009 18:55:54 +0000 (10:55 -0800)
commitc2fdd36b550659f5ac2240d1f5a83ffa1a092289
tree670558bb598d185fb1805f09bf5d39da13b03d91
parentaa8c6c93747f7b55fa11e1624fec8ca33763a805
PCI hotplug: fix lock imbalance in pciehp

set_lock_status omits mutex_unlock in fail path. Add the omitted
unlock.

As a result a lockup caused by this can be triggered from userspace
by writing 1 to /sys/bus/pci/slots/.../lock often enough.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp_core.c