drivers/char/rio/rioctrl.c: off by one error in rioctrl.c
authorDan Carpenter <error27@gmail.com>
Wed, 23 Sep 2009 22:57:14 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:03 +0000 (07:21 -0700)
commit459ca8b4ed1889b0a69bbe21888e6af136d495f3
treec83e78fe8da1c42e45ea5fcdbee2b93469f2bf3b
parentae21cf9248584d9b3776bfe2ebec47256bf098f8
drivers/char/rio/rioctrl.c: off by one error in rioctrl.c

If DownLoad.ProductCode == MAX_PRODUCT, that would be a problem when we do
RIOBootTable[DownLoad.ProductCode] a couple lines down.

Found by smatch (http://repo.or.cz/w/smatch.git).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rio/rioctrl.c