ALSA: firewire-motu: fix error return code in snd_motu_stream_reserve_duplex()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 3 Jun 2021 14:32:03 +0000 (22:32 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Jun 2021 06:47:53 +0000 (08:47 +0200)
commitce9f50e7ac807b7651903c44f1b14a4f97725daa
treeefe1d98e3ce7a0a69ae9fde8599eaa03f4be3746
parent9ce650a75a3b262c90789b42aedee8fc2ee04d53
ALSA: firewire-motu: fix error return code in snd_motu_stream_reserve_duplex()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: e50dfac81f73 ("ALSA: firewire-motu: cache event ticks in source packet header per data block")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210603143203.582017-1-yangyingliang@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-stream.c