ALSA: Fix vunmap and free order in snd_free_sgbuf_pages()
commit9f020d792a2f8bad05c231b5d5d7afe2e2cf4c49
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 Mar 2009 13:00:06 +0000 (17 14:00 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Mar 2009 21:59:56 +0000 (23 14:59 -0700)
tree6cb35a7cc8f4e27054a798428c77ba7404b67184
parentf79630367ac562edfe667cdd8f964c56092e6b0a
ALSA: Fix vunmap and free order in snd_free_sgbuf_pages()

commit 6af845e4eb36fb91b322aaf77ec1cab2220a48ad upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/core/sgbuf.c