]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sparc: Fix invalid snd_free_pages() at error path
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Nov 2018 17:18:30 +0000 (18:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 24 Nov 2018 18:56:15 +0000 (19:56 +0100)
commit05b60934904879d622837345c03fcb328ccdd237
tree8a0005a0b1c72305f433eea062c2dca4f5672c92
parent1b84bff84eea6b81c14b8673dfa657cc994288c1
ALSA: sparc: 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 sparc cs4231 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/sparc/cs4231.c