Skip to content

Commit

Permalink
Subject: [PATCH] br2684: restore net_dev initialization
Browse files Browse the repository at this point in the history
Commit 0ba25ff ("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>
  • Loading branch information
Rabin Vincent authored and David S. Miller committed May 2, 2009
1 parent d0ab8ff commit 902e5ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/atm/br2684.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ static void br2684_setup(struct net_device *netdev)
struct br2684_dev *brdev = BRPRIV(netdev);

ether_setup(netdev);
brdev->net_dev = netdev;

netdev->netdev_ops = &br2684_netdev_ops;

Expand Down

0 comments on commit 902e5ea

Please sign in to comment.