From: David Henningsson Date: Tue, 15 Jan 2013 14:27:19 +0000 (+0100) Subject: ALSA: hda - fix OOPS in hda_mark_cmd_cache_dirty X-Git-Tag: upstream/snapshot3+hdmi~5621^2~77^2~38^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f038fcaca827a2330d502a5d653ab639419f45db;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ALSA: hda - fix OOPS in hda_mark_cmd_cache_dirty Obvious copy-paste error. Signed-off-by: David Henningsson Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b28e403..e6cdad7 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -3794,7 +3794,7 @@ static void hda_mark_cmd_cache_dirty(struct hda_codec *codec) } for (i = 0; i < codec->amp_cache.buf.used; i++) { struct hda_amp_info *amp; - amp = snd_array_elem(&codec->cmd_cache.buf, i); + amp = snd_array_elem(&codec->amp_cache.buf, i); amp->head.dirty = 1; } }