Skip to contentSkip to conversation

2.5.60 make cciss driver compile

PATCH steve cameron 1 participant 1 message Feb 12, 2003 Block layer

lore
Share & tools
lore
#0 lore raw

Fix possible array bounds overrun in cciss driver
(patch 4 of 11)
-- steve

drivers/block/cciss.c renamed from drivers/block/cciss.c~fix_open_bug +1 -1
@@ -345,7 +345,7 @@ static int cciss_open(struct inode *inod
 	printk(KERN_DEBUG "cciss_open %x (%x:%x)\n", inode->i_rdev, ctlr, dsk);
 #endif /* CCISS_DEBUG */ 
 
-	if (ctlr > MAX_CTLR || hba[ctlr] == NULL)
+	if (ctlr >= MAX_CTLR || hba[ctlr] == NULL)
 		return -ENXIO;
 	/*
 	 * Root is allowed to open raw volume zero even if its not configured

_