FW: cciss updates for 2.4.22-pre3 [2 of 6]

Miller, Mike (mike.miller@hp.com)
Thu, 10 Jul 2003 16:59:33 -0500


-----Original Message-----
From: Miller, Mike (OS Dev)
Sent: Thursday, July 10, 2003 4:46 PM
To: 'axboe@suse.de'; 'marcelo@conectiva.com.br'
Cc: 'alan@lxorguk.ukuu.org.uk'; 'linuxkernel@vger.kernel.org'
Subject: cciss updates for 2.4.22-pre3 [2 of 6]

These patches can be installed in any order EXCEPT the final 2 of the 6. They are name p1* & p2* respectively.

This patch was built & tested using kernel 2.4.21 with the 2.4.22pre3 patch
applied. It is intended for inclusion in the 2.4.22 kernel.
Patch name: cciss_2447_PCI_BAR_fix.patch
Changes:
1. Changes the PCI_BASE_ADDRESS_MEM_PREFETCH case in the
find_PCI_BAR_index() function to a default case. This
should never happen in PCI version 2.2. Bug fix.
--------------------------------------------------------------------------------------------------------------------
diff -burN lx2422p3/drivers/block/cciss.c lx2422p3.test/drivers/block/cciss.c
--- lx2422p3/drivers/block/cciss.c 2003-07-07 13:49:34.000000000 -0500
+++ lx2422p3.test/drivers/block/cciss.c 2003-07-07 14:43:05.000000000 -0500
@@ -2460,7 +2460,9 @@
case PCI_BASE_ADDRESS_MEM_TYPE_64:
offset += 8;
break;
- case PCI_BASE_ADDRESS_MEM_PREFETCH:
+ default: /* reserved in PCI 2.2 */
+ printk(KERN_WARNING "Base address is invalid\n");
+ return -1;
break;
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/