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

Commit 76530da1 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[PATCH] sound/oss/sonicvibes.c: fix an array overflow



This patch fixes an array overflow found by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6c207e76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1149,7 +1149,7 @@ static int mixer_ioctl(struct sv_state *s, unsigned int cmd, unsigned long arg)
			if (mixtable[i].rec)
				break;
		}
		if (!mixtable[i].rec)
		if (i == SOUND_MIXER_NRDEVICES)
			return 0;
		spin_lock_irqsave(&s->lock, flags);
		frobindir(s, SV_CIMIX_ADCINL, 0x1f, mixtable[i].rec << 5);