Thread (3 messages) flat view 3 messages, 3 authors, 2007-06-08

Re: 2.6.22-rc4-mm2 -- ipw2200 -- SIOCSIFADDR: No buffer space available

From: Miles Lane <hidden>
Date: 2007-06-08 06:35:30
Also in: lkml

On 6/7/07, Björn Steinbrink [off-list ref] wrote:
[...]
quoted hunk ↗ jump to hunk
Miles, could you try if this patch helps?

Björn


Stop destroying devices when all of their ifas are gone, as we no longer
recreate them when ifas are added.

Signed-off-by: Björn Steinbrink <redacted>
--
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index fa97b96..abf6352 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -327,12 +327,8 @@ static void __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap,
                }

        }
-       if (destroy) {
+       if (destroy)
                inet_free_ifa(ifa1);
-
-               if (!in_dev->ifa_list)
-                       inetdev_destroy(in_dev);
-       }
 }

 static void inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap,
Björn,

Thanks.  You patch worked for me.

             Miles
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help