Replace rtnl_lock(); register_netdevice(dev); rtnl_unlock(); with the equivalent register_netdev(); in numerous places.
Attach a file by drag & drop or click to upload