firewire: fix NULL pointer deref. and resource leak