ASoC: rsnd: set dmaen->chan = NULL when error case
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 13 Apr 2015 06:00:45 +0000 (06:00 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 15 Apr 2015 16:05:27 +0000 (17:05 +0100)
commitd1acba2fdebb449bad01e7cf77a9f9730dfaca6e
tree8253edf1b2a10815ef566929f4f98ad53c29b538
parent7667428f80526d908124e0647ac5dbe3dad88900
ASoC: rsnd: set dmaen->chan = NULL when error case

rsnd_dmaen_quit() is assuming dmaen->chan is NULL if it failed
to get DMAEngine channel. but, current dmaen->chan might have
error value when error case (this driver is checking it by IS_ERR_OR_NULL())
This patch makes sure dmaen->chan is NULL when error case.
Otherwise, it will contact to unknown address in rsnd_dmaen_quit()

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dma.c