staging: rt2860: off by one errors
authorDan Carpenter <error27@gmail.com>
Mon, 8 Mar 2010 13:39:24 +0000 (16:39 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:33 +0000 (11:35 -0700)
commit4dbb8e57c1ef23e5822b85a646b4ba31a98b9864
tree2045fd73a1e80153324efc1d1535a7d97aa60340
parent1e1d25cb0d248d58ac8e586ebb23bf2f6dc55c0b
staging: rt2860: off by one errors

The code is trying to say that if the offset is higher than the max it
should be set to the max, but there is an off by one bug and it sets it
one passed the end of the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/sta_ioctl.c