diff options
author | Yang Zhang <yang.z.zhang@Intel.com> | 2012-11-22 03:20:23 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-01-15 21:56:48 +0100 |
commit | 6337a23992826e68257fba51267cb6996439520d (patch) | |
tree | 0a70603d7edf3b2cf5dee5b954c6629b801a7cd2 /drivers/xen/xen-pciback | |
parent | xen/privcmd: Relax access control in privcmd_ioctl_mmap (diff) | |
download | linux-6337a23992826e68257fba51267cb6996439520d.tar.xz linux-6337a23992826e68257fba51267cb6996439520d.zip |
x86/xen : Fix the wrong check in pciback
Fix the wrong check in pciback.
Signed-off-by: Yang Zhang <yang.z.zhang@Intel.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/pciback.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xen-pciback/pciback.h b/drivers/xen/xen-pciback/pciback.h index a7def010eba3..f72af87640e0 100644 --- a/drivers/xen/xen-pciback/pciback.h +++ b/drivers/xen/xen-pciback/pciback.h @@ -124,7 +124,7 @@ static inline int xen_pcibk_add_pci_dev(struct xen_pcibk_device *pdev, static inline void xen_pcibk_release_pci_dev(struct xen_pcibk_device *pdev, struct pci_dev *dev) { - if (xen_pcibk_backend && xen_pcibk_backend->free) + if (xen_pcibk_backend && xen_pcibk_backend->release) return xen_pcibk_backend->release(pdev, dev); } |