Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168697
b: refs/heads/master
c: 690e744
h: refs/heads/master
i:
  168695: d1876c2
v: v3
  • Loading branch information
Dave Jones authored and James Bottomley committed Nov 11, 2009
1 parent 4986b1d commit 227a50d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 198439e4afec431d2fa2cab9a4dcca87e5adc7a5
refs/heads/master: 690e744869f3262855b83b4fb59199cf142765b0
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/gdth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,7 @@ static int gdth_read_event(gdth_ha_str *ha, int handle, gdth_evt_str *estr)
eindex = handle;
estr->event_source = 0;

if (eindex >= MAX_EVENTS) {
if (eindex < 0 || eindex >= MAX_EVENTS) {
spin_unlock_irqrestore(&ha->smp_lock, flags);
return eindex;
}
Expand Down

0 comments on commit 227a50d

Please sign in to comment.