X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fcaif%2Fchnl_net.c;h=6008d6dc18a02283fdff763ba2186190208a8003;hb=4f680ceafafebed72c302d829d764de72710c169;hp=fa9dab372b68719317123133d8f3802ac4cee8bc;hpb=6fb1b304255efc5c4c93874ac8c066272e257e28;p=mv-sheeva.git diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index fa9dab372b6..6008d6dc18a 100644 --- a/net/caif/chnl_net.c +++ b/net/caif/chnl_net.c @@ -394,9 +394,7 @@ static void ipcaif_net_setup(struct net_device *dev) priv->conn_req.sockaddr.u.dgm.connection_id = -1; priv->flowenabled = false; - ASSERT_RTNL(); init_waitqueue_head(&priv->netmgmt_wq); - list_add(&priv->list_field, &chnl_net_list); } @@ -453,6 +451,8 @@ static int ipcaif_newlink(struct net *src_net, struct net_device *dev, ret = register_netdevice(dev); if (ret) pr_warn("device rtml registration failed\n"); + else + list_add(&caifdev->list_field, &chnl_net_list); return ret; }