[PATCH] br2684: restore net_dev initialization

From: Rabin Vincent
Date: Sat May 02 2009 - 09:14:28 EST


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@xxxxxxxxx>
Signed-off-by: Rabin Vincent <rabin@xxxxxx>
---
net/atm/br2684.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index 334fcd4..3100a89 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -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;

--
1.6.2.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/