netdev
[Top] [All Lists]

[PATCH] fix arm/etherh.c allocation

To: Jeff Garzik <jgarzik@xxxxxxxxx>, Russell King <rmk+lkml@xxxxxxxxxxxxxxxx>
Subject: [PATCH] fix arm/etherh.c allocation
From: Daniel Ritz <daniel.ritz@xxxxxx>
Date: Tue, 20 Apr 2004 20:49:08 +0200
Cc: netdev@xxxxxxxxxxx
Reply-to: daniel.ritz@xxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.5.2
russell, there's a part of my original patch you missed: allocation of the
netdevice. doesn't need a comment.

against 2.6-bknow

rgds
-daniel 


--- 1.23/drivers/net/arm/etherh.c       Wed Apr 14 12:23:55 2004
+++ edited/etherh.c     Tue Apr 20 20:39:04 2004
@@ -574,7 +574,7 @@
        if (ret)
                goto out;
 
-       dev = alloc_ei_netdev();
+       dev = __alloc_ei_netdev(sizeof(struct etherh_priv));
        if (!dev) {
                ret = -ENOMEM;
                goto release;


<Prev in Thread] Current Thread [Next in Thread>