| To: | tgraf@xxxxxxx (Thomas Graf) |
|---|---|
| Subject: | Re: Fw: unregister_netdevice(): negative refcnt, suggest patch against 2.6.11 |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 18 Apr 2005 12:07:49 +1000 |
| Cc: | fmp@xxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050411125113.GL26731@xxxxxxxxxxxxxx> |
| Organization: | Core |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686)) |
Thomas Graf <tgraf@xxxxxxx> wrote: > > OK, I think the problem is a few missing dev_hold() when the net_device > handle is assigned to routes, probes, etc. Indeed. Here is a patch that adds the references that are held by the routes. Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- ===== net/appletalk/ddp.c 1.58 vs edited ===== --- 1.58/net/appletalk/ddp.c 2005-03-27 09:04:35 +10:00 +++ edited/net/appletalk/ddp.c 2005-04-18 11:29:17 +10:00 @@ -573,6 +573,7 @@ /* Fill in the routing entry */ rt->target = ta->sat_addr; + dev_hold(devhint); rt->dev = devhint; rt->flags = r->rt_flags; rt->gateway = ga->sat_addr; |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [2.6 patch] drivers/net/wan/: possible cleanups, Adrian Bunk |
|---|---|
| Next by Date: | NAPI, e100, and system performance problem, Brandeburg, Jesse |
| Previous by Thread: | Re: Fw: unregister_netdevice(): negative refcnt, suggest patch against 2.6.11, Thomas Graf |
| Next by Thread: | Re: Fw: unregister_netdevice(): negative refcnt, suggest patch against 2.6.11, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |