summaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback/vpci.c
diff options
context:
space:
mode:
authorDan Carpenter2011-09-27 09:07:21 +0200
committerKonrad Rzeszutek Wilk2011-09-29 16:50:26 +0200
commite1db4cef8999c422420d55206beb4154f8a85383 (patch)
treeff2acfb7f6ccbeae69d6f84b5f86df41e41e7a34 /drivers/xen/xen-pciback/vpci.c
parentxen/pciback: use mutex rather than spinlock in vpci backend (diff)
downloadkernel-qcow2-linux-e1db4cef8999c422420d55206beb4154f8a85383.tar.gz
kernel-qcow2-linux-e1db4cef8999c422420d55206beb4154f8a85383.tar.xz
kernel-qcow2-linux-e1db4cef8999c422420d55206beb4154f8a85383.zip
xen/pciback: double lock typo
We called mutex_lock() twice instead of unlocking. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/xen-pciback/vpci.c')
-rw-r--r--drivers/xen/xen-pciback/vpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xen-pciback/vpci.c b/drivers/xen/xen-pciback/vpci.c
index 01222d7dd20d..46d140baebd8 100644
--- a/drivers/xen/xen-pciback/vpci.c
+++ b/drivers/xen/xen-pciback/vpci.c
@@ -238,7 +238,7 @@ static int __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev,
}
}
}
- mutex_lock(&vpci_dev->lock);
+ mutex_unlock(&vpci_dev->lock);
return found;
}