Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165697
b: refs/heads/master
c: 459ca8b
h: refs/heads/master
i:
  165695: 97c7950
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Sep 24, 2009
1 parent d32f88a commit d556ffd
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: ae21cf9248584d9b3776bfe2ebec47256bf098f8
refs/heads/master: 459ca8b4ed1889b0a69bbe21888e6af136d495f3
2 changes: 1 addition & 1 deletion trunk/drivers/char/rio/rioctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ int riocontrol(struct rio_info *p, dev_t dev, int cmd, unsigned long arg, int su
/*
** It is important that the product code is an unsigned object!
*/
if (DownLoad.ProductCode > MAX_PRODUCT) {
if (DownLoad.ProductCode >= MAX_PRODUCT) {
rio_dprintk(RIO_DEBUG_CTRL, "RIO_DOWNLOAD: Bad product code %d passed\n", DownLoad.ProductCode);
p->RIOError.Error = NO_SUCH_PRODUCT;
return -ENXIO;
Expand Down

0 comments on commit d556ffd

Please sign in to comment.