firewire: net: fix NULL derefencing in fwnet_probe()
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 29 Apr 2014 09:49:47 +0000 (18:49 +0900)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 12 May 2014 12:35:31 +0000 (14:35 +0200)
commit1118f8d048dd595efbadf05e8bca4e19684ffb4d
treeaf6b68e21a76f9d077f6b01d62d59bfee25ee079
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
firewire: net: fix NULL derefencing in fwnet_probe()

"dev" and "net" are NULL when alloc_netdev() is failed.
So just unlock and return an error.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/net.c