]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1d31cb09616e70aae8f4747c7540642b79e1893
treeaf6b68e21a76f9d077f6b01d62d59bfee25ee079
parent53e5313673903082e1a4b63bd6c576867a14921f
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