]> git.baikalelectronics.ru Git - 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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Oct 2018 06:08:04 +0000 (08:08 +0200)
commit0a8dbd3eefbe6b8a661b56546a4065d337da550e
tree843ee6890e0c9b1d54667e67499ed2bcf3784ead
parentde689ade2d46a1e4866fca4870a3d57a943e7241
ALSA: isight: fix leak of reference to firewire unit in error path of .probe callback

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

Fixes: 88e68f5b6341('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>
sound/firewire/isight.c