l2tp: fix oops in l2tp_eth_create() error path
[linux-3.10.git] / net / l2tp / l2tp_eth.c
index 37b8b8b..76125c5 100644 (file)
@@ -291,6 +291,7 @@ static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 p
 
 out_del_dev:
        free_netdev(dev);
+       spriv->dev = NULL;
 out_del_session:
        l2tp_session_delete(session);
 out: