ifb: fix oops when loading the ifb failed
authordingtianhong <dingtianhong@huawei.com>
Thu, 11 Jul 2013 11:04:06 +0000 (19:04 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 2 Aug 2013 20:14:50 +0000 (22:14 +0200)
commite7622858946a8b67f9821a1154e431f745f64043
tree0e65489a89ba2e4c8e89e5058c8fbfe8e7477919
parent8de1483c61c900d6ed6a42340f60185226d4a47e
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: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ifb.c