projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e477062
)
ALSA: hda - Fix Oops in smart51 parsing in VIA codec
author
Takashi Iwai
<tiwai@suse.de>
Fri, 8 Jul 2011 09:35:11 +0000
(11:35 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 8 Jul 2011 09:35:11 +0000
(11:35 +0200)
Typical off-by-one thinko.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_via.c
b/sound/pci/hda/patch_via.c
index dbc862e4ff139d12d1c2fccd23ad407d43b07b0f..d051cb53dd86b7b456b44695f2494fb066681f29 100644
(file)
--- 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)
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;