]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:20:45 +0000 (14:20 -0300)
commitf303132b2095a401e9151d08b9d0e5e599bd1583
tree37b29df8b0f79fe6e74ac7fc86c53fe20dce2d12
parent916a4dd3185d4087f67caffa52b39cb3bef5331c
ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback

BugLink: https://bugs.launchpad.net/bugs/1854975
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/firewire/isight.c