commit | 21d45d2ba97fa5bcb41b444095338dde792026d3 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Fri Jul 08 11:35:11 2011 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Fri Jul 08 11:35:11 2011 +0200 |
tree | d0120c8ce0d2e6ddbe20ceb4f772e3355708219f | |
parent | e47706295843730c815dbc98f47ed2f75e051109 [diff] [blame] |
ALSA: hda - Fix Oops in smart51 parsing in VIA codec Typical off-by-one thinko. Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index dbc862e..d051cb5 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c
@@ -1802,7 +1802,7 @@ 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;