]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: fix error path to destroy initialized stream data
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 26 Apr 2018 13:00:29 +0000 (22:00 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Apr 2018 13:24:54 +0000 (15:24 +0200)
commit18613fa955b171411f2bbd36dc75ce718048c8e1
tree1e899c0d64f0e313eb3d1abd762f4046e68880c5
parent8ae6861ca2c41e51dfa2e4ab2bafdb8138812a63
ALSA: dice: fix error path to destroy initialized stream data

In error path of snd_dice_stream_init_duplex(), stream data for incoming
packet can be left to be initialized.

This commit fixes it.

Fixes: d9548e9d408e ('ALSA: dice: handle whole available isochronous streams')
Cc: <stable@vger.kernel.org> # v4.6+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-stream.c