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

Commit 21d45d2b authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Fix Oops in smart51 parsing in VIA codec



Typical off-by-one thinko.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e4770629
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1802,7 +1802,7 @@ static void mangle_smart51(struct hda_codec *codec)
			for (j = 0; j < nums; j++)
				if (ins[pins[j]].type < ins[i].type) {
					memmove(pins + j + 1, pins + j,
						(nums - j - 1) * sizeof(int));
						(nums - j) * sizeof(int));
					break;
				}
			pins[j] = i;