]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Fix vunmap and free order in snd_free_sgbuf_pages()
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 Mar 2009 13:00:06 +0000 (14:00 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Mar 2009 07:04:01 +0000 (08:04 +0100)
commitf14a894293859cdc2fc2633affc6ae4b3f04dba5
tree1c38682916ce378530e0be92f786a06b68c8f60e
parentf49b143d450e96cb310a35fec578a5e88badcf6a
ALSA: Fix vunmap and free order in snd_free_sgbuf_pages()

In snd_free_sgbuf_pags(), vunmap() is called after releasing the SG
pages, and it causes errors on Xen as Xen manages the pages
differently.  Although no significant errors have been reported on
the actual hardware, this order should be fixed other way round,
first vunmap() then free pages.

Cc: Jan Beulich <jbeulich@novell.com>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/sgbuf.c