]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: wss: Fix invalid snd_free_pages() at error path
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Nov 2018 17:16:33 +0000 (18:16 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 24 Nov 2018 18:55:59 +0000 (19:55 +0100)
commit7b69154171b407844c273ab4c10b5f0ddcd6aa29
tree96291c001be13f2b5a45f42884c057e4a5326143
parent8cd65271f8e545ddeed10ecc2e417936bdff168e
ALSA: wss: Fix invalid snd_free_pages() at error path

Some spurious calls of snd_free_pages() have been overlooked and
remain in the error paths of wss driver code.  Since runtime->dma_area
is managed by the PCM core helper, we shouldn't release manually.

Drop the superfluous calls.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/wss/wss_lib.c