]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix non-snoop page handling
authorTakashi Iwai <tiwai@suse.de>
Tue, 29 Jan 2013 17:07:22 +0000 (18:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Jan 2013 17:18:00 +0000 (18:18 +0100)
commitb95f74c371730391efbed6451e71e9502e4005d8
tree887be5729e4e3987888ff554677241aea463a0c1
parent11a0821c1fe696e277caed2c28badcf06d33d7b8
ALSA: hda - Fix non-snoop page handling

For non-snoop mode, we fiddle with the page attributes of CORB/RIRB
and the position buffer, but also the ring buffers.  The problem is
that the current code blindly assumes that the buffer is contiguous.
However, the ring buffers may be SG-buffers, thus a wrong vmapped
address is passed there, leading to Oops.

This patch fixes the handling for SG-buffers.

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=800701

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c