| To: | hadi@xxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH] Clean up fib_hash datastructures |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 20 Sep 2004 13:14:54 +1000 |
| Cc: | davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <1095640781.1047.168.camel@jzny.localdomain> |
| Organization: | Core |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686)) |
jamal <hadi@xxxxxxxxxx> wrote:
>
> --- a/net/ipv4/fib_hash.c 2004/09/20 00:35:16 1.1
> +++ b/net/ipv4/fib_hash.c 2004/09/20 00:36:16
> @@ -915,7 +915,7 @@
> iter->zone = iter->zone->fz_next) {
> int maxslot;
>
> - if (!iter->zone->fz_next)
> + if (!iter->zone->fz_nent)
> continue;
Good catch. There seems to be another problem with the seq_file
conversion. Why is this check only in fib_get_first(), but not
in fib_get_next()?
Either it's needed in fib_get_next() as well, or it can be removed here.
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Improve behaviour of Netlink Sockets, Herbert Xu |
|---|---|
| Next by Date: | Re: [PATCH] Clean up fib_hash datastructures, David S. Miller |
| Previous by Thread: | Re: [PATCH] Clean up fib_hash datastructures, David S. Miller |
| Next by Thread: | Re: [PATCH] Clean up fib_hash datastructures, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |