diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-07-08 05:35:11 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-07-08 05:35:11 -0400 |
commit | 21d45d2ba97fa5bcb41b444095338dde792026d3 (patch) | |
tree | d0120c8ce0d2e6ddbe20ceb4f772e3355708219f /sound/pci | |
parent | e47706295843730c815dbc98f47ed2f75e051109 (diff) |
ALSA: hda - Fix Oops in smart51 parsing in VIA codec
Typical off-by-one thinko.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_via.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index dbc862e4ff13..d051cb53dd86 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -1802,7 +1802,7 @@ static void mangle_smart51(struct hda_codec *codec) | |||
1802 | for (j = 0; j < nums; j++) | 1802 | for (j = 0; j < nums; j++) |
1803 | if (ins[pins[j]].type < ins[i].type) { | 1803 | if (ins[pins[j]].type < ins[i].type) { |
1804 | memmove(pins + j + 1, pins + j, | 1804 | memmove(pins + j + 1, pins + j, |
1805 | (nums - j - 1) * sizeof(int)); | 1805 | (nums - j) * sizeof(int)); |
1806 | break; | 1806 | break; |
1807 | } | 1807 | } |
1808 | pins[j] = i; | 1808 | pins[j] = i; |