summaryrefslogtreecommitdiff
path: root/drivers/xen/xen-pciback
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-09-27 11:07:21 +0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-09-29 18:50:26 +0400
commite1db4cef8999c422420d55206beb4154f8a85383 (patch)
treeff2acfb7f6ccbeae69d6f84b5f86df41e41e7a34 /drivers/xen/xen-pciback
parent74d33dedc2fb8d98821bcf7df9800ce59456502e (diff)
downloadlinux-e1db4cef8999c422420d55206beb4154f8a85383.tar.xz
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')
-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;
}