linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FW: cciss updates for 2.4.22-pre3  [3 of 6]
@ 2003-07-10 21:59 Miller, Mike (OS Dev)
  0 siblings, 0 replies; only message in thread
From: Miller, Mike (OS Dev) @ 2003-07-10 21:59 UTC (permalink / raw)
  To: linux-kernel



-----Original Message-----
From: Miller, Mike (OS Dev) 
Sent: Thursday, July 10, 2003 4:49 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 [3 of 6]


These patches can be installed in any order EXCEPT the final 2 of the 6. They are named 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_scsi_overrun_fix_for_lx2422p3.patch
Changes:
	1. Fixes a potential overrun if a medium changer is attached.
	   Bug fix.
--------------------------------------------------------------------------------------------------------------------
diff -burN lx2422p3.test/drivers/block/cciss_scsi.c lx2422p3/drivers/block/cciss_scsi.c
--- lx2422p3.test/drivers/block/cciss_scsi.c	2003-06-13 09:51:32.000000000 -0500
+++ lx2422p3/drivers/block/cciss_scsi.c	2003-07-07 16:54:58.000000000 -0500
@@ -1182,6 +1182,12 @@
 		{
 		  case 0x01: /* sequential access, (tape) */
 		  case 0x08: /* medium changer */
+			if (ncurrent >= CCISS_MAX_SCSI_DEVS_PER_HBA) {
+				printk(KERN_INFO "cciss%d: %s ignored, "
+					"too many devices.\n", cntl_num,
+					DEVICETYPE(devtype));
+				break;
+			}
 			memcpy(&currentsd[ncurrent].scsi3addr[0],
 				&scsi3addr[0], 8);
 			currentsd[ncurrent].devtype = devtype;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-10 21:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-10 21:59 FW: cciss updates for 2.4.22-pre3 [3 of 6] Miller, Mike (OS Dev)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).