Skip to content

Commit

Permalink
rar: Fix off by one error
Browse files Browse the repository at this point in the history
It looks like there is an off-by-one error in one of your changes to
drivers/staging/rar_register/rar_register.c:

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ossama Othman authored and Linus Torvalds committed Aug 24, 2010
1 parent 577ba40 commit a9728c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/intel_rar_register.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void free_rar_device(struct rar_device *rar)
*/
static struct rar_device *_rar_to_device(int rar, int *off)
{
if (rar >= 0 && rar <= 3) {
if (rar >= 0 && rar < MRST_NUM_RAR) {
*off = rar;
return &my_rar_device;
}
Expand Down

0 comments on commit a9728c9

Please sign in to comment.