ifb: fix oops when loading the ifb failed
authordingtianhong <dingtianhong@huawei.com>
Thu, 11 Jul 2013 11:04:06 +0000 (19:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2013 23:26:08 +0000 (16:26 -0700)
commitbe6e458b750126f6be1143e4a3225f4d23d3900b
treebd81be3f77097e5bb1a280953f26e09ee34a78e9
parent7f6d8ea02c762b788ba38d4f084ad18b6e569813
ifb: fix oops when loading the ifb failed

[ Upstream commit f2966cd5691058b8674a20766525bedeaea9cbcf ]

If __rtnl_link_register() return faild when loading the ifb, it will
take the wrong path and get oops, so fix it just like dummy.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ifb.c