]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/x2APIC_PATCH_01_0f4896665a02b465ddca59a560983b24ec28c64b
Fix oinkmaster patch.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / x2APIC_PATCH_01_0f4896665a02b465ddca59a560983b24ec28c64b
CommitLineData
2cb7cef9
BS
1From: Suresh Siddha <suresh.b.siddha@intel.com>
2Subject: dmar: fix dmar_parse_dev() devices_cnt error condition check
3References: fate #303948 and fate #303984
4Patch-Mainline: queued for .28
5Commit-ID: 0f4896665a02b465ddca59a560983b24ec28c64b
6
7Signed-off-by: Thomas Renninger <trenn@suse.de>
8
9It is possible that,
10instead of PCI endpoint/sub-hierarchy structures, only IO-APIC/HPET
11devices may be reported under device scope structures. Fix the devices_cnt
12error check, which cares about only PCI structures and removes the
13dma-remapping unit structure (dmaru) when the devices_cnt is zero
14and include_all flag is not set.
15
16Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
17Acked-by: Yinghai Lu <yhlu.kernel@gmail.com>
18Signed-off-by: Ingo Molnar <mingo@elte.hu>
19
20---
21 drivers/pci/dmar.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24Index: linux-2.6.26/drivers/pci/dmar.c
25===================================================================
26--- linux-2.6.26.orig/drivers/pci/dmar.c
27+++ linux-2.6.26/drivers/pci/dmar.c
28@@ -212,7 +212,7 @@ dmar_parse_dev(struct dmar_drhd_unit *dm
29 include_all = 1;
30 }
31
32- if (ret || (dmaru->devices_cnt == 0 && !dmaru->include_all)) {
33+ if (ret) {
34 list_del(&dmaru->list);
35 kfree(dmaru);
36 }