ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 12 Oct 2018 05:25:22 +0000 (14:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:28:13 +0000 (18:28 +0100)
commitd1f08bccf9506463a9e68b0d21cb654feea841a9
treed9be9e169d6fe2c45c6adf062c2df8969fb70199
parent9c8e98a0b3261801f0f1bd23d7dc32c5429f6764
ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback

[ Upstream commit 51e68fb0929c29e47e9074ca3e99ffd6021a1c5a ]

In some error paths, reference count of firewire unit is not decreased.
This commit fixes the bug.

Fixes: 5b14ec25a79b('ALSA: firewire: release reference count of firewire unit in .remove callback of bus driver')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/firewire/isight.c