|
@@ -724,7 +724,7 @@ static inline void neo_parse_isr(struct jsm_board *brd, u32 port)
|
|
|
if (!brd)
|
|
|
return;
|
|
|
|
|
|
- if (port > brd->maxports)
|
|
|
+ if (port >= brd->maxports)
|
|
|
return;
|
|
|
|
|
|
ch = brd->channels[port];
|
|
@@ -840,7 +840,7 @@ static inline void neo_parse_lsr(struct jsm_board *brd, u32 port)
|
|
|
if (!brd)
|
|
|
return;
|
|
|
|
|
|
- if (port > brd->maxports)
|
|
|
+ if (port >= brd->maxports)
|
|
|
return;
|
|
|
|
|
|
ch = brd->channels[port];
|
|
@@ -1180,7 +1180,7 @@ static irqreturn_t neo_intr(int irq, void *voidbrd)
|
|
|
*/
|
|
|
|
|
|
/* Verify the port is in range. */
|
|
|
- if (port > brd->nasync)
|
|
|
+ if (port >= brd->nasync)
|
|
|
continue;
|
|
|
|
|
|
ch = brd->channels[port];
|