ALSA: firewire-lib: suppress kernel warnings when releasing uninitialized stream...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 30 Mar 2016 23:47:02 +0000 (08:47 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 31 Mar 2016 13:36:17 +0000 (15:36 +0200)
commit44c376b9596ca00d1bdee37e716d1bd4dd36c955
treec4924408e819b03f2faa43cd05938c369da8f169
parent97cc2ed27e5a168cf423f67c3bc7c6cc41d12f82
ALSA: firewire-lib: suppress kernel warnings when releasing uninitialized stream data

When any of AMDTP stream data are not initialized and private data is
going to be released, WARN_ON() in amdtp_stream_destroy() is hit and
dump messages. This may take users irritated.

This commit fixes the bug to skip releasing when it's not initialized.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c