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)
commit51e68fb0929c29e47e9074ca3e99ffd6021a1c5a
tree843ee6890e0c9b1d54667e67499ed2bcf3784ead
parente7bb6ad5685f05685dd8a6a5eda7bfcd14d5f95b
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: 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>
sound/firewire/isight.c