Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9728c9a authored by Ossama Othman's avatar Ossama Othman Committed by Linus Torvalds
Browse files

rar: Fix off by one error



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: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 577ba406
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}