render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Mark McLoughlin 90dddf
From 58c38896a67c170063401d8091bae7dca8842923 Mon Sep 17 00:00:00 2001
Mark McLoughlin 90dddf
From: Jiri Denemark <jdenemar@redhat.com>
Mark McLoughlin 90dddf
Date: Wed, 23 Sep 2009 18:46:23 +0200
Mark McLoughlin 90dddf
Subject: [PATCH] Fix a typo in virDiskHasValidPciAddr()
Mark McLoughlin 90dddf
Mark McLoughlin 90dddf
(cherry-picked from commit 3620e3cdcfe56cc4475b5ef1a0a893757240b795)
Mark McLoughlin 90dddf
Mark McLoughlin 90dddf
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Mark McLoughlin 90dddf
Fedora-patch: libvirt-fix-device-detach-typo1.patch
Mark McLoughlin 90dddf
---
Mark McLoughlin 90dddf
 src/domain_conf.h |    2 +-
Mark McLoughlin 90dddf
 1 files changed, 1 insertions(+), 1 deletions(-)
Mark McLoughlin 90dddf
Mark McLoughlin 90dddf
diff --git a/src/domain_conf.h b/src/domain_conf.h
Mark McLoughlin 90dddf
index 09368d9..d494e54 100644
Mark McLoughlin 90dddf
--- a/src/domain_conf.h
Mark McLoughlin 90dddf
+++ b/src/domain_conf.h
Mark McLoughlin 90dddf
@@ -125,7 +125,7 @@ struct _virDomainDiskDef {
Mark McLoughlin 90dddf
 static inline int
Mark McLoughlin 90dddf
 virDiskHasValidPciAddr(virDomainDiskDefPtr def)
Mark McLoughlin 90dddf
 {
Mark McLoughlin 90dddf
-    return def->pci_addr.domain || def->pci_addr.domain || def->pci_addr.slot;
Mark McLoughlin 90dddf
+    return def->pci_addr.domain || def->pci_addr.bus || def->pci_addr.slot;
Mark McLoughlin 90dddf
 }
Mark McLoughlin 90dddf
 
Mark McLoughlin 90dddf
 
Mark McLoughlin 90dddf
-- 
Mark McLoughlin 90dddf
1.6.2.5
Mark McLoughlin 90dddf