Browse Source

Subject: [PATCH] br2684: restore net_dev initialization

Commit 0ba25ff4c669e5395110ba6ab4958a97a9f96922 ("br2684: convert to
net_device_ops") inadvertently deleted the initialization of the net_dev
pointer in the br2684_dev structure, leading to crashes.  This patch
adds it back.

Reported-by: Mikko Vinni <mmvinni@yahoo.com>
Tested-by: Mikko Vinni <mmvinni@yahoo.com>
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
Rabin Vincent 16 years ago
parent
commit
902e5ea15f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/atm/br2684.c

+ 1 - 0
net/atm/br2684.c

@@ -549,6 +549,7 @@ static void br2684_setup(struct net_device *netdev)
 	struct br2684_dev *brdev = BRPRIV(netdev);
 	struct br2684_dev *brdev = BRPRIV(netdev);
 
 
 	ether_setup(netdev);
 	ether_setup(netdev);
+	brdev->net_dev = netdev;
 
 
 	netdev->netdev_ops = &br2684_netdev_ops;
 	netdev->netdev_ops = &br2684_netdev_ops;