Signed-off-by: Asim Kadav <[email protected]>
---
drivers/scsi/a100u2w.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c
index 0163457..c2ca15c 100644
--- a/drivers/scsi/a100u2w.c
+++ b/drivers/scsi/a100u2w.c
@@ -821,6 +821,9 @@ static irqreturn_t orc_interrupt(struct orc_host * host)
/* Get the SCB index of the SCB to service */
scb_index = inb(host->base + ORC_RQUEUE);
+ /* Sanitize incoming index */
+ scb_index &= 31;
+
/* Translate it back to a host pointer */
scb = (struct orc_scb *) ((unsigned long) host->scb_virt +
(unsigned long) (sizeof(struct orc_scb) * scb_index));
scb->status = 0x0;
--
1.7.11.3--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html