From: Herbert Xu <herbert@gondor.apana.org.au>
To: davem@davemloft.net, Andrew Morton <akpm@osdl.org>
Cc: netdev@vger.kernel.org, pstaszewski@artcom.pl, Robert.Olsson@data.slu.se
Subject: Re: [Bug 6688] Memory allocation problem
Date: Wed, 12 Jul 2006 21:45:13 +1000 [thread overview]
Message-ID: <20060712114513.GA16823@gondor.apana.org.au> (raw)
In-Reply-To: <E1G0d94-0004My-00@gondolin.me.apana.org.au>
On Wed, Jul 12, 2006 at 09:44:46PM +1000, Herbert Xu wrote:
>
> [IPV4]: Fix error handling for fib_insert_node call
Doh, fogot the patch.
[IPV4]: Fix error handling for fib_insert_node call
The error handling around fib_insert_node was broken because we always
zeroed the error before checking it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 1cb6530..23fb9d9 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -1252,8 +1252,8 @@ fn_trie_insert(struct fib_table *tb, str
*/
if (!fa_head) {
- fa_head = fib_insert_node(t, &err, key, plen);
err = 0;
+ fa_head = fib_insert_node(t, &err, key, plen);
if (err)
goto out_free_new_fa;
}
next prev parent reply other threads:[~2006-07-12 11:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200606200646.k5K6k8Z3009667@fire-2.osdl.org>
2006-06-20 7:24 ` [Bug 6688] Memory allocation problem Andrew Morton
2006-07-12 11:44 ` Herbert Xu
2006-07-12 11:45 ` Herbert Xu [this message]
2006-07-12 20:30 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060712114513.GA16823@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=Robert.Olsson@data.slu.se \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=pstaszewski@artcom.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox