From 6567ada9dc1224f3c7a0ae4b6363a9232c51ba76 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 25 Sep 2014 16:34:07 -0300 Subject: memtest86+: add new package to [libre] --- libre/memtest86+/memtest86+-5.01-array-size.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libre/memtest86+/memtest86+-5.01-array-size.patch (limited to 'libre/memtest86+/memtest86+-5.01-array-size.patch') diff --git a/libre/memtest86+/memtest86+-5.01-array-size.patch b/libre/memtest86+/memtest86+-5.01-array-size.patch new file mode 100644 index 000000000..f08e686c9 --- /dev/null +++ b/libre/memtest86+/memtest86+-5.01-array-size.patch @@ -0,0 +1,22 @@ +Index: memtest86+-5.01/controller.c +=================================================================== +--- memtest86+-5.01.orig/controller.c ++++ memtest86+-5.01/controller.c +@@ -292,7 +292,7 @@ static void setup_nhm(void) + + /* First, locate the PCI bus where the MCH is located */ + +- for(i = 0; i < sizeof(possible_nhm_bus); i++) { ++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); + vid &= 0xFFFF; +@@ -327,7 +327,7 @@ static void setup_nhm32(void) + ctrl.mode = ECC_NONE; + + /* First, locate the PCI bus where the MCH is located */ +- for(i = 0; i < sizeof(possible_nhm_bus); i++) { ++ for(i = 0; i < sizeof(possible_nhm_bus) / sizeof(possible_nhm_bus[0]); i++) { + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x00, 2, &vid); + pci_conf_read( possible_nhm_bus[i], 3, 4, 0x02, 2, &did); + vid &= 0xFFFF; -- cgit v1.2.3-54-g00ecf